{ "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_IyF9nZqC6SgfRCixg2Ey4gfO", "type": "function", "function": { "name": "get_boiling_point", "arguments": "{\"liquid_name\":\"myawesomeliquid\",\"celsius\":true}" } } ] }, { "role": "tool", "tool_call_id": "call_IyF9nZqC6SgfRCixg2Ey4gfO", "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-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "w7YjXROMlfd" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "The", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "l5voaPjPGZ" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " boiling", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "d7SJY" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " point", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "aQpKFQv" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " of", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "iPXmwng2nG" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " \"", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "XYuhBFGq41" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "my", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "mx5Ci5y9S6D" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "aw", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "OX8duQkN7BR" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "esom", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "vdhAhDTbV" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "eli", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "ECsq85LZg8" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "quid", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "K0OoeNCzJ" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "\"", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "NNYCKFoIJtl" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " in", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "3YMWCmtreV" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " Celsius", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "xFaaH" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " is", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "LX6S6zI6cB" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": " -", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "XB3sAbZEszg" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "100", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "MJNr2oHjXO" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": "\u00b0C", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "003YWKM7JXt" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": ".", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "VsZqSyuCUM34" } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-CEJ2zcUenWhaJxmxYrmMCEc5YdwAp", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "stop", "index": 0, "logprobs": null } ], "created": 1757525845, "model": "gpt-4o-2024-08-06", "object": "chat.completion.chunk", "service_tier": "default", "system_fingerprint": "fp_1827dd0c55", "usage": null, "obfuscation": "BLptJg1" } } ], "is_streaming": true } }