mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
61 lines
2.9 KiB
JSON
Generated
61 lines
2.9 KiB
JSON
Generated
{
|
|
"test_id": "tests/integration/inference/test_openai_completion.py::test_openai_chat_completion_non_streaming[client_with_models-txt=bedrock-inference/openai.gpt-oss-20b-1:0-inference:chat_completion:non_streaming_02]",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1/v1/chat/completions",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "Which planet has rings around it with a name starting with letter S?"
|
|
}
|
|
],
|
|
"stream": false
|
|
},
|
|
"endpoint": "/v1/chat/completions",
|
|
"model": "openai.gpt-oss-20b-1:0"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "openai.types.chat.chat_completion.ChatCompletion",
|
|
"__data__": {
|
|
"id": "rec-0fc8d107245c",
|
|
"choices": [
|
|
{
|
|
"finish_reason": "stop",
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"message": {
|
|
"content": "<reasoning>User asks: \"Which planet has rings around it with a name starting with letter S?\" They mean: which planet has a ring system, presumably among the known ringed planets. Names starting with letter S. Which planet has rings around it and the ring's name begins with S? Or possibly the planet's name starts with S. But no planets in solar system start with S. maybe Saturn? But Saturn starts with S. Yes Saturn rings. So answer: Saturn has rings. But question: \"Which planet has rings around it with a name starting with letter S?\" Another interpretation: the ring's name starts with S. Saturn's rings are named A, B, C, D, etc. They don't start with \"S\". However, the ring system may include the \"Saturn's ring\" known as the \"Saturn rings\" starting with S. The question may be ambiguous. Let's analyze. The planet has rings around it; this planet's name starts with S. Which planet has rings? Saturn is the only planet with a prominent ring system. So answer: Saturn.\n\nThus produce a concise answer.</reasoning>**Saturn** \u2013 it is the solar\u2011system planet whose name starts with an \u201cS\u201d and is famously encircled by a complex system of rings.",
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"annotations": null,
|
|
"audio": null,
|
|
"function_call": null,
|
|
"tool_calls": null
|
|
}
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": {
|
|
"completion_tokens": 268,
|
|
"prompt_tokens": 83,
|
|
"total_tokens": 351,
|
|
"completion_tokens_details": null,
|
|
"prompt_tokens_details": {
|
|
"audio_tokens": 0,
|
|
"cached_tokens": 48
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
},
|
|
"id_normalization_mapping": {}
|
|
}
|