mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://localhost:8000/v1/v1/completions",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "meta-llama/Llama-3.2-1B-Instruct",
|
|
"prompt": "Respond to this question and explain your answer. Complete the sentence using one word: Roses are red, violets are ",
|
|
"stream": false,
|
|
"extra_body": {}
|
|
},
|
|
"endpoint": "/v1/completions",
|
|
"model": "meta-llama/Llama-3.2-1B-Instruct"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "openai.types.completion.Completion",
|
|
"__data__": {
|
|
"id": "cmpl-ad47f09ffa654bdbac868bd573dca1f4",
|
|
"choices": [
|
|
{
|
|
"finish_reason": "length",
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "\tblue. (A) Happy, (B) Beautiful, (C)",
|
|
"stop_reason": null,
|
|
"prompt_logprobs": null
|
|
}
|
|
],
|
|
"created": 1758035470,
|
|
"model": "meta-llama/Llama-3.2-1B-Instruct",
|
|
"object": "text_completion",
|
|
"system_fingerprint": null,
|
|
"usage": {
|
|
"completion_tokens": 16,
|
|
"prompt_tokens": 26,
|
|
"total_tokens": 42,
|
|
"completion_tokens_details": null,
|
|
"prompt_tokens_details": null
|
|
},
|
|
"kv_transfer_params": null
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
}
|
|
}
|