llama-stack-mirror/tests/integration/inference/recordings/085098d43435ac3b10595184dcd7ef191f16f392ee697f679f3bf1d238ca2f25.json

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": {}
}