mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
58 lines
2.4 KiB
JSON
Generated
58 lines
2.4 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_01]",
|
|
"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 do humans live on?"
|
|
}
|
|
],
|
|
"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-8be772a5c559",
|
|
"choices": [
|
|
{
|
|
"finish_reason": "stop",
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"message": {
|
|
"content": "<reasoning>The user asks: \"Which planet do humans live on?\" It's a simple factual question: Humans live on Earth. But we need to consider context: We have no further context. Likely a straightforward answer: Earth. However maybe they want details? The policy says no disallowed content. It's fine. Just answer. Probably best to give a short answer. Also could include explanation of Earth as the sixth planet from the Sun, etc. It expects a simple relevant answer. So answer: Earth.</reasoning>Human beings live on **Earth** \u2013 the planet that\u2019s the third from the Sun, average distance about 150\u202fmillion\u202fkm, and the only known world with an environment that supports life as we know it.",
|
|
"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": 154,
|
|
"prompt_tokens": 76,
|
|
"total_tokens": 230,
|
|
"completion_tokens_details": null,
|
|
"prompt_tokens_details": null
|
|
}
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
},
|
|
"id_normalization_mapping": {}
|
|
}
|