llama-stack-mirror/tests/integration/inference/recordings/31d205d1ff903e80485b63c46a08fcbdc1f31e4b1c7943a72e6a4ca2b010ad25.json

130 lines
3.8 KiB
JSON
Generated

{
"test_id": "tests/integration/inference/test_openai_completion.py::test_inference_store[client_with_models-txt=bedrock-inference/openai.gpt-oss-20b-1:0-True]",
"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": "Hello, world!"
}
],
"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-31d205d1ff90",
"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-31d205d1ff90",
"choices": [
{
"delta": {
"content": "<reasoning>They just said \"Hello, world!\" They want a response. Probably just a friendly greeting.</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-31d205d1ff90",
"choices": [
{
"delta": {
"content": "Hello! \ud83c\udf1f How can I help you today?",
"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-31d205d1ff90",
"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": {}
}