{ "request": { "method": "POST", "url": "https://shan-mfbb618r-eastus2.cognitiveservices.azure.com/openai/v1/v1/chat/completions", "headers": {}, "body": { "model": "gpt-5-mini", "messages": [ { "role": "user", "content": "What's the weather in Tokyo? Use the get_weather function to get the weather." } ], "stream": true, "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather in a given city", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "The city to get the weather for" } } } } } ] }, "endpoint": "/v1/chat/completions", "model": "gpt-5-mini" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "", "choices": [], "created": 0, "model": "", "object": "", "service_tier": null, "system_fingerprint": null, "usage": null, "prompt_filter_results": [ { "prompt_index": 0, "content_filter_results": {} } ] } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": "assistant", "tool_calls": [ { "index": 0, "id": "call_TMbEoYn9q0ZKtoxav5LpD9Ts", "function": { "arguments": "", "name": "get_weather" }, "type": "function" } ] }, "finish_reason": null, "index": 0, "logprobs": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "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": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "city", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "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": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": null, "function": { "arguments": "Tokyo", "name": null }, "type": null } ] }, "finish_reason": null, "index": 0, "logprobs": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "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": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CECIiMMWyfACuKUYWEyYSazcnvRVo", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "tool_calls", "index": 0, "logprobs": null, "content_filter_results": {} } ], "created": 1757499912, "model": "gpt-5-mini-2025-08-07", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": null, "usage": null } } ], "is_streaming": true } }