mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
# What does this PR do? recorded for: ./scripts/integration-tests.sh --stack-config server:ci-tests --suite base --setup fireworks --subdirs inference --pattern openai ## Test Plan ./scripts/integration-tests.sh --stack-config server:ci-tests --suite base --setup fireworks --subdirs inference --pattern openai
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://api.fireworks.ai/inference/v1/v1/completions",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "accounts/fireworks/models/llama-v3p1-8b-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": "accounts/fireworks/models/llama-v3p1-8b-instruct"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "openai.types.completion.Completion",
|
|
"__data__": {
|
|
"id": "1bbb8db5-63e5-40cd-8ffe-59e0e88bf8f0",
|
|
"choices": [
|
|
{
|
|
"finish_reason": "length",
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "4. At the beginning of the year, a woman has $5,000"
|
|
}
|
|
],
|
|
"created": 1758920353,
|
|
"model": "accounts/fireworks/models/llama-v3p1-8b-instruct",
|
|
"object": "text_completion",
|
|
"system_fingerprint": null,
|
|
"usage": {
|
|
"completion_tokens": 16,
|
|
"prompt_tokens": 25,
|
|
"total_tokens": 41,
|
|
"completion_tokens_details": null,
|
|
"prompt_tokens_details": null
|
|
}
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
}
|
|
}
|