---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 874
    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":"moonshotai/kimi-k2-instruct-0905","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:
      - OpenAI/Go 2.3.0
    url: https://api.groq.com/openai/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v6abtexz9x4ehz7ept3nt"}}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"I'll"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" help"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" you"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" add"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" multiply"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" numbers"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.add:0","type":"function","function":{"name":"add","arguments":"{\"a\":2,\"b\":3}"},"index":0}]},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{"tool_calls":[{"id":"functions.multiply:1","type":"function","function":{"name":"multiply","arguments":"{\"a\":2,\"b\":3}"},"index":1}]},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"x_groq":{"id":"req_01k62v6abtexz9x4ehz7ept3nt","usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616}},"usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616}}

      data: {"id":"chatcmpl-eaa5320c-c0d2-4f0b-b2c1-378d7e65e871","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_6e6ff3688b","choices":[],"usage":{"queue_time":0.035435906,"prompt_tokens":207,"prompt_time":0.021306235,"completion_tokens":55,"completion_time":0.193797381,"total_tokens":262,"total_time":0.215103616},"service_tier":"on_demand"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 113.669917ms
- id: 1
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1317
    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"},{"content":"I''ll help you add and multiply the numbers 2 and 3.","tool_calls":[{"id":"functions.add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"functions.multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"functions.add:0","role":"tool"},{"content":"6","tool_call_id":"functions.multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-instruct-0905","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:
      - OpenAI/Go 2.3.0
    url: https://api.groq.com/openai/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"x_groq":{"id":"req_01k62v6anceen846x2tt27aefk"}}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" results"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" are"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":\n"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" Addition"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" +"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"5"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" Multi"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"plication"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ×"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" ="},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{"content":"6"},"logprobs":null,"finish_reason":null}]}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"x_groq":{"id":"req_01k62v6anceen846x2tt27aefk","usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505}},"usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505}}

      data: {"id":"chatcmpl-641d8aab-9499-4610-9dde-be5d0504ff7d","object":"chat.completion.chunk","created":1758884735,"model":"moonshotai/kimi-k2-instruct-0905","system_fingerprint":"fp_b8565bb333","choices":[],"usage":{"queue_time":0.163143838,"prompt_tokens":289,"prompt_time":0.025574857,"completion_tokens":29,"completion_time":0.055943648,"total_tokens":318,"total_time":0.081518505},"service_tier":"on_demand"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream
    status: 200 OK
    code: 200
    duration: 244.900083ms
