{ "request": { "method": "POST", "url": "https://api.openai.com/v1/v1/chat/completions", "headers": {}, "body": { "model": "gpt-4o", "messages": [ { "role": "user", "content": "What is the boiling point of myawesomeliquid in Celsius?" }, { "role": "assistant", "content": "", "tool_calls": [ { "index": 0, "id": "call_8OvVdVb27HGuLcnFK8Dc0yky", "type": "function", "function": { "name": "get_boiling_point", "arguments": "{\"liquid_name\":\"myawesomeliquid\",\"celsius\":true}" } } ] }, { "role": "tool", "tool_call_id": "call_8OvVdVb27HGuLcnFK8Dc0yky", "content": [ { "type": "text", "text": "-100" } ] } ], "response_format": { "type": "text" }, "stream": true, "tools": [ { "type": "function", "function": { "name": "greet_everyone", "parameters": { "type": "object", "properties": { "url": { "type": "string" } }, "required": [ "url" ] } } }, { "type": "function", "function": { "name": "get_boiling_point", "description": "\n Returns the boiling point of a liquid in Celsius or Fahrenheit.\n\n :param liquid_name: The name of the liquid\n :param celsius: Whether to return the boiling point in Celsius\n :return: The boiling point of the liquid in Celcius or Fahrenheit\n ", "parameters": { "type": "object", "properties": { "liquid_name": { "type": "string" }, "celsius": { "type": "boolean" } }, "required": [ "liquid_name", "celsius" ] } } } ] }, "endpoint": "/v1/chat/completions", "model": "gpt-4o" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "3oo4skBdFUx" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "The", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "eGilPuzqm3" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " boiling", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "CHrrc" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " point", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "My2C8Er" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " of", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "s5rjTZ6L4E" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " \"", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "ugsTASHIQC" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "my", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "kxcTZoqj5wx" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "aw", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "ANfM87PURWi" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "esom", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "BgJcFbYnW" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "eli", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "lsnMsXm3cx" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "quid", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "XUIGjkF1w" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "\"", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "MYMi58FNw5Y" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " is", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "OtTRYjGFDr" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": " -", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "lxiKLVgxPwK" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "100", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "INihYxXN8v" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": "\u00b0C", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "pl9X2fNMAON" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": ".", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "8Tzo81PTDN4P" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2wFUMh4oAQF5I6pvtCYP39cZHy", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "stop", "index": 0, "logprobs": null } ], "created": 1757525842, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "sf4Dma0" } } ], "is_streaming": true } }