{ "test_id": "tests/integration/responses/test_basic_responses.py::test_include_logprobs_with_function_tools[txt=openai/gpt-4o]", "request": { "method": "POST", "url": "https://api.openai.com/v1/v1/chat/completions", "headers": {}, "body": { "model": "gpt-4o", "messages": [ { "role": "user", "content": "What is the weather in Paris?" } ], "logprobs": true, "stream": true, "stream_options": { "include_usage": true }, "tools": [ { "type": "function", "function": { "type": "function", "name": "get_weather", "description": "Get weather information for a specified location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city name (e.g., 'New York', 'London')" } } }, "strict": null } } ] }, "endpoint": "/v1/chat/completions", "model": "gpt-4o" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": "assistant", "tool_calls": [ { "index": 0, "id": "call_8T1tTdWOywKWs4tYSzyflftR", "function": { "arguments": "", "name": "get_weather" }, "type": "function" } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "2U536HpxwFMNHw" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "{\"", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "LDpoCusy" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "location", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "X7q" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "\":\"", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "TMTYo8" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "Paris", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "8EmcxX" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "\"}", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": { "content": null, "refusal": null } } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "cnMSe1WI" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "tool_calls", "index": 0, "logprobs": null } ], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": null, "obfuscation": "fs5p" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-a6c5e729150f", "choices": [], "created": 0, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_e819e3438b", "usage": { "completion_tokens": 14, "prompt_tokens": 67, "total_tokens": 81, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0 }, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 0 } }, "obfuscation": "xFLK91cW1si1hsA" } } ], "is_streaming": true }, "id_normalization_mapping": {} }