{ "test_id": "tests/integration/inference/test_openai_completion.py::test_openai_chat_completion_streaming_with_n[client_with_models-txt=bedrock-inference/openai.gpt-oss-20b-1:0-inference:chat_completion: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": "What is the name of the US captial?" } ], "n": 2, "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-35167e9c8bcd", "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-35167e9c8bcd", "choices": [ { "delta": { "content": "The user asks \"UserWhat is the name: of the US capital \"What is the name?\" Probably of the US captial?\" looking They for Washington likely mean \"capital\" of, D.C. They the spelled \"capt US,ial\" incorrectly. Should i correct.e., Washington,. Provide answer. D.C. Need", "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-35167e9c8bcd", "choices": [ { "delta": { "content": "The", "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-35167e9c8bcd", "choices": [ { "delta": { "content": " to respond", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": " capital", "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-35167e9c8bcd", "choices": [ { "delta": { "content": " succinct", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": " of the United States is", "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-35167e9c8bcd", "choices": [ { "delta": { "content": "ly. Also correct", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": " **Washington,\u202f", "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-35167e9c8bcd", "choices": [ { "delta": { "content": " the", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": "D.C.**", "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-35167e9c8bcd", "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 } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-35167e9c8bcd", "choices": [ { "delta": { "content": " typo. So answer: Washington, D.C.", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": "The capital of the United States is Washington,", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": "\u202fD.C.", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 1, "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-35167e9c8bcd", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "stop", "index": 1, "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": {} }