mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
443 lines
13 KiB
JSON
Generated
443 lines
13 KiB
JSON
Generated
{
|
|
"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": "<reasoning>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</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-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": "<reasoning> to respond</reasoning>",
|
|
"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": "<reasoning> succinct</reasoning>",
|
|
"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": "<reasoning>ly. Also correct</reasoning>",
|
|
"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": "<reasoning> the</reasoning>",
|
|
"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": "<reasoning> typo. So answer: Washington, D.C.</reasoning>",
|
|
"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": {}
|
|
}
|