mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
182 lines
5.5 KiB
JSON
Generated
182 lines
5.5 KiB
JSON
Generated
{
|
|
"test_id": "tests/integration/inference/test_openai_completion.py::test_openai_chat_completion_streaming[client_with_models-txt=bedrock-inference/openai.gpt-oss-20b-1:0-inference:chat_completion: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": "What's the name of the Sun in latin?"
|
|
}
|
|
],
|
|
"stream": true
|
|
},
|
|
"endpoint": "/v1/chat/completions",
|
|
"model": "openai.gpt-oss-20b-1:0"
|
|
},
|
|
"response": {
|
|
"body": [
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "<reasoning>We need to answer: \"What's the name of the Sun in Latin?\" The Latin word for Sun (the celestial body) is \"sol\", also \"sol\" as noun for sun. So answer: Sol. Also the Latin name \"Sol\"</reasoning>",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": null,
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "<reasoning> (genitive \"Solis\"). Might mention \"sol\" or \"solis\" if genitive. So answer. Use brief.</reasoning>",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": null,
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "In Latin the Sun",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": null,
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " is called **Sol** (genitive *Solis*).",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": null,
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-085098d43435",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": null,
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": null,
|
|
"tool_calls": null
|
|
},
|
|
"finish_reason": "stop",
|
|
"index": 0,
|
|
"logprobs": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "openai.gpt-oss-20b-1:0",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": "auto",
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
}
|
|
],
|
|
"is_streaming": true
|
|
},
|
|
"id_normalization_mapping": {}
|
|
}
|