---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 502
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"gpt-4o","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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    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-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_gFQuLUJTwJsBM7Y2mq8A5Tb9","type":"function","function":{"name":"weather","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6spKBRZAjZ8J0"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yH6"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lJ55qhVB1AN93C"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"s"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qN"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"77"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VLp1X"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":""}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"YMN"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"usage":null,"obfuscation":"TFgV"}

      data: {"id":"chatcmpl-DIgOYMXmYOXjhEX6yuEufQ4vABXz2","object":"chat.completion.chunk","created":1773345242,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","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":"ZQqtsgfnKUMFnQR"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 1.533239416s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 754
    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_gFQuLUJTwJsBM7Y2mq8A5Tb9","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_gFQuLUJTwJsBM7Y2mq8A5Tb9","role":"tool"}],"model":"gpt-4o","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:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    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-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"APGdpAes4gFKrF"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8ROdL0a3vN5cK"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"p11oc9ks"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" temperature"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Gz5V"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rynKxq0lJ6zCS"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" Florence"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RB2Cump"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dktNYMblGlkyqvC"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" Italy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6Ko3t1M7KO"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" is"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"l9QjE69PUvvV5"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NV94464tHMJOFdV"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"40"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XqVrRIj7NMJjSg"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"°C"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"g0R9xOfjnFySDQ"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"aJTBIAG5P5Zog5v"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"e9Yt0HF6FH"}

      data: {"id":"chatcmpl-DIgOZEILn4dneOO9GLJ0fLQPDcnYr","object":"chat.completion.chunk","created":1773345243,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","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":"V89OWCoE0c7MQOo"}

      data: [DONE]

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