---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 848
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"gpt-4o","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"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-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","usage":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}],"obfuscation":"iVMxB4bDtxB"}

      data: {"id":"chatcmpl-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_lhJr4dWBxpVpf9LjGfERTy62","type":"function","function":{"name":"add","arguments":""}}]},"logprobs":null,"finish_reason":null}],"obfuscation":"KE"}

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

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

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

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

      data: {"id":"chatcmpl-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_o97Fs8Ray28WjwotGOcB6vXB","type":"function","function":{"name":"multiply","arguments":""}}]},"logprobs":null,"finish_reason":null}],"obfuscation":"WBOuHOUc04gzs"}

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

      data: {"id":"chatcmpl-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":": 2, "}}]},"logprobs":null,"finish_reason":null}],"obfuscation":"h"}

      data: {"id":"chatcmpl-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\"b\": 3"}}]},"logprobs":null,"finish_reason":null}],"obfuscation":"n5afZuErja0bFi"}

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

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

      data: {"id":"chatcmpl-DIgOgnbt21sEHKKTkWWAUf2BiMy3T","object":"chat.completion.chunk","created":1773345250,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[],"usage":{"prompt_tokens":106,"completion_tokens":50,"total_tokens":156,"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":"TGqprANrKBek6"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 3.781110667s
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1279
    host: ""
    body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_lhJr4dWBxpVpf9LjGfERTy62","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"call_o97Fs8Ray28WjwotGOcB6vXB","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_lhJr4dWBxpVpf9LjGfERTy62","role":"tool"},{"content":"6","tool_call_id":"call_o97Fs8Ray28WjwotGOcB6vXB","role":"tool"}],"model":"gpt-4o","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"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-DIgOhMk4rdtMwcP5RhJQHwNQWkjse","object":"chat.completion.chunk","created":1773345251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"I00rI7wzo1HTO4"}

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

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

      data: {"id":"chatcmpl-DIgOhMk4rdtMwcP5RhJQHwNQWkjse","object":"chat.completion.chunk","created":1773345251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9bbu0esZoaBdx"}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      data: {"id":"chatcmpl-DIgOhMk4rdtMwcP5RhJQHwNQWkjse","object":"chat.completion.chunk","created":1773345251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[],"usage":{"prompt_tokens":172,"completion_tokens":20,"total_tokens":192,"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":"LvgodbfjYIIYs"}

      data: [DONE]

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