---
version: 2
interactions:
  - id: 0
    request:
        proto: HTTP/1.1
        proto_major: 1
        proto_minor: 1
        content_length: 507
        host: ""
        body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"gpt-4o-mini","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
        headers:
            Accept:
              - application/json
            Content-Type:
              - application/json
            User-Agent:
              - OpenAI/Go 2.3.0
        url: https://api.openai.com/v1/chat/completions
        method: POST
    response:
        proto: HTTP/2.0
        proto_major: 2
        proto_minor: 0
        content_length: -1
        body: |+
            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_eaFZk5oKtBMZbnNRWRTJtLd8","type":"function","function":{"name":"weather","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5KI0UtZk"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xratVRRQUvO7ju"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wYiTeV7h8"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"MPkLZkYPNsIR"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TCU5TS5ww2nCI"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wDqHJX5wYfcOA"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":""}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rLIAlWnSklw"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cSZ8YHtvjZ0s1X"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"usage":null,"obfuscation":"XPQmeXulXZEoftW"}

            data: {"id":"chatcmpl-CJ0tBlueR3651IKlhIzPl3aK6mL6E","object":"chat.completion.chunk","created":1758647685,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[],"usage":{"prompt_tokens":61,"completion_tokens":16,"total_tokens":77,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"obbGCGoTl9"}

            data: [DONE]

        headers:
            Content-Type:
              - text/event-stream; charset=utf-8
        status: 200 OK
        code: 200
        duration: 512.806041ms
  - id: 1
    request:
        proto: HTTP/1.1
        proto_major: 1
        proto_minor: 1
        content_length: 759
        host: ""
        body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_eaFZk5oKtBMZbnNRWRTJtLd8","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_eaFZk5oKtBMZbnNRWRTJtLd8","role":"tool"}],"model":"gpt-4o-mini","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
        headers:
            Accept:
              - application/json
            Content-Type:
              - application/json
            User-Agent:
              - OpenAI/Go 2.3.0
        url: https://api.openai.com/v1/chat/completions
        method: POST
    response:
        proto: HTTP/2.0
        proto_major: 2
        proto_minor: 0
        content_length: -1
        body: |+
            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zaIgHcc89"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VmC7fB9t"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"p8h"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" weather"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vXV"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kyKyXttg"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Florence"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zA"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ez5qB60FIe"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" Italy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Azhcm"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" is"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"V8wzXyf1"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BXxv0GdxY8"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"40"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zkC1qjQIp"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"°C"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"X76P2Vgf4"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"DfAlLE2gti"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"6WtHI"}

            data: {"id":"chatcmpl-CJ0tC6vKfIzgNkmkKDiGYcgC6i8h0","object":"chat.completion.chunk","created":1758647686,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_560af6e559","choices":[],"usage":{"prompt_tokens":86,"completion_tokens":13,"total_tokens":99,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"cmTLrubMzR"}

            data: [DONE]

        headers:
            Content-Type:
              - text/event-stream; charset=utf-8
        status: 200 OK
        code: 200
        duration: 530.826042ms
