1---
2version: 2
3interactions:
4- id: 0
5 request:
6 proto: HTTP/1.1
7 proto_major: 1
8 proto_minor: 1
9 content_length: 851
10 host: ""
11 body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"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"}],"usage":{"include":true}}'
12 headers:
13 Accept:
14 - application/json
15 Content-Type:
16 - application/json
17 User-Agent:
18 - OpenAI/Go 2.7.1
19 url: https://openrouter.ai/api/v1/chat/completions
20 method: POST
21 response:
22 proto: HTTP/2.0
23 proto_major: 2
24 proto_minor: 0
25 content_length: -1
26 uncompressed: true
27 body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1761054142-eYAg1TS29ynxKrGihXi4\",\"provider\":\"xAI\",\"model\":\"x-ai/grok-code-fast-1\",\"object\":\"chat.completion\",\"created\":1761054142,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null,\"reasoning\":\"The user wants to add and multiply 2 and 3. There are tools for add and multiply, and the instruction says to always use both add and multiply at the same time.\\n\\n\\n## Handling user calculation\\n\\n- The user needs to perform addition and multiplication with the numbers 2 and 3.\",\"tool_calls\":[{\"id\":\"call_11576212\",\"index\":0,\"type\":\"function\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"id\":\"call_73433553\",\"index\":1,\"type\":\"function\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The user wants to add and multiply 2 and 3. There are tools for add and multiply, and the instruction says to always use both add and multiply at the same time.\\n\\n\\n## Handling user calculation\\n\\n- The user needs to perform addition and multiplication with the numbers 2 and 3.\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gLfiMDfyjmfStOk6GOQ4aXtkwzRIjhGm+zvLHyQHiorECxqk6/nYU4IS/zUK+fFFd0dBKmsny+h8GwRN+OiiUa21Xy7iKf81aD60JOp8LkDLjQ3S9dxEoVTRroOTYAkH5Jx63vn7bgIoT8VDWcuFY2aa66JE/IXNC3I2hBEC6ntKtChcu/4m303kcyp8JBVIzGb2DLgg51e/UwTEToE6LbCCMKEpkHly9yL5VVq7fDH2mNu1RwBHIcAzyWCKYgdUn9BWAbjGvZF8NSqA3g3gJjkPFemhGqSvMONqxhhaIb29GdbIAFZY+d4+dGolb3KITRkg2Oib223hhfwQqaBMPp6nwmiqhIcr9uqVNYTag50O2mLNUvrlh4p8bvi52UI1mt2krhrRZ8H44+Kdi1uiwPajqI6RpGFkPIxv6OMDBY/rwRmtHVjC/74HB5QizdMa4xEv7X8TP/R6Gl356IDwHlGDqHvE65GgLOL+3Jt0GyoPc5l71j0TwX5/Qq0f79Dl/eU+vwtNP1kryCiYruK1a7Ezeuj/H2rinVmW6jNkfxwSjUntpFIJMucksz0cg4fmxwo/br1FKv/3lSjEJmOaG34mj/0+mDR5GFR8uwdQVBX06nLcdbaZLoA4YlZxgrU6e0MQFsfjEwZq4si0RGwml4rbdjOcKuS9YqJGAKv/LaM3GLEnlLpnKMixX7ztB+9b8gQJMdhvdl/T25MFOWUaSyXo0AHxuviDs++8qRAABamNl8/k251DElVRYYVzpXq7LElavxhn7ijDQ3uzYeK7R1KelnYCAgS4SnHfI5t4cFfwQzDgMxco2VOGUpZ6srXM140442mVkVgqyd8+JGPni6e7W+TQVFcfU/cd2t5QLuthnF+DaAaT035keBY0OmaSlQQop5GbAEoag8UPGA7Xn+nP/fZqDaCxyJnArSiph5sGNOqB1bWVQMVtNumU4yy21852AiB6+cCOZvuWLJ6GmZxlpIDScrxZmA\",\"id\":\"rs_bcbaf157-d66c-01ad-7ceb-24b34ad2926c_us-east-1\",\"format\":\"xai-responses-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":479,\"completion_tokens\":229,\"total_tokens\":708,\"cost\":0.0003817,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":320,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.0000382,\"upstream_inference_completions_cost\":0.0003435},\"completion_tokens_details\":{\"reasoning_tokens\":161,\"image_tokens\":0}}}"
28 headers:
29 Content-Type:
30 - application/json
31 status: 200 OK
32 code: 200
33 duration: 528.732ms
34- id: 1
35 request:
36 proto: HTTP/1.1
37 proto_major: 1
38 proto_minor: 1
39 content_length: 1578
40 host: ""
41 body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_11576212","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_73433553","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user wants to add and multiply 2 and 3. There are tools for add and multiply, and the instruction says to always use both add and multiply at the same time.\n\n\n## Handling user calculation\n\n- The user needs to perform addition and multiplication with the numbers 2 and 3.","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_11576212","role":"tool"},{"content":"6","tool_call_id":"call_73433553","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"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"}],"usage":{"include":true}}'
42 headers:
43 Accept:
44 - application/json
45 Content-Type:
46 - application/json
47 User-Agent:
48 - OpenAI/Go 2.7.1
49 url: https://openrouter.ai/api/v1/chat/completions
50 method: POST
51 response:
52 proto: HTTP/2.0
53 proto_major: 2
54 proto_minor: 0
55 content_length: -1
56 uncompressed: true
57 body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1761054144-7XSqRnWBMdsk5sVp4y1Y\",\"provider\":\"xAI\",\"model\":\"x-ai/grok-code-fast-1\",\"object\":\"chat.completion\",\"created\":1761054144,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5.\\n\\nThe product of 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":\"First, the user asked to add and multiply 2 and 3.\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked to add and multiply 2 and 3.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"xRfwXVzoI7ub4uNstLcVTuu7+WAZZtMt3XMSSdxWm35hkiCzspszDpMG+hE2GkOVNfQwhOJd7yuVjimdu5aQ44NWMwjydTKyqOdxxHUzsnkXQUpO5Y3KSu1ngX1NW7qEx6kLlxTrQPlqUxE1XMgHGaFHZcTGoVcdapm6IchhjrtGqTLnf6Wze8QaqCpmsfw0EhtD9TBAQTfkvgnBoWmAIzh1TsKZBPdjbEv6YC+Y0mjgOZZtKHcYjvAJMJkdVRwrvGVBIrKZmvL2XhWNntuLQKC0s62t8LXHBbko+lWUvm+epgWMlNSIF57HvqKWlosJTkAe6hvBSHagKl/BG6Dc9dQLyLGuT1rQMEpZPC29rupAv2CQopw+RV9OECU9wQYYTqGmVLqgy3gl9QzgVMFsmjYIkMp658e7Wgfoa/J4ZAe/dTDtmMyoB6q4ZTzsv7nsDK+cdtCRwjc\",\"id\":\"rs_52652d80-12d8-ef8e-bb9f-107c5b072aa4_us-east-1\",\"format\":\"xai-responses-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":560,\"completion_tokens\":98,\"total_tokens\":658,\"cost\":0.0002014,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":320,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.0000544,\"upstream_inference_completions_cost\":0.000147},\"completion_tokens_details\":{\"reasoning_tokens\":74,\"image_tokens\":0}}}"
58 headers:
59 Content-Type:
60 - application/json
61 status: 200 OK
62 code: 200
63 duration: 551.782167ms