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: 829
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":"zai-org/GLM-4.6:cerebras","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"}]}'
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://router.huggingface.co/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 body: '{"id":"chatcmpl-7189d22c-3447-47bd-99e5-5e5b509d6373","choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","reasoning":"The user wants me to add and multiply the numbers 2 and 3. Looking at the available functions, I have:\n1. add function - to add two numbers\n2. multiply function - to multiply two numbers\n\nI need to call both functions as instructed. Let me call both functions with a=2 and b=3.","tool_calls":[{"id":"4f736900e","type":"function","function":{"name":"add","arguments":"{\"a\": 2, \"b\": 3}"}},{"id":"c69319726","type":"function","function":{"name":"multiply","arguments":"{\"a\": 2, \"b\": 3}"}}],"role":"assistant"}}],"created":1762855260,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":430,"completion_tokens":128,"prompt_tokens":302},"time_info":{"queue_time":0.003482136,"prompt_time":0.007521096,"completion_time":0.148015855,"total_time":0.16007018089294434,"created":1762855260.7792244}}'
27 headers:
28 Content-Type:
29 - application/json
30 status: 200 OK
31 code: 200
32 duration: 523.183584ms
33- id: 1
34 request:
35 proto: HTTP/1.1
36 proto_major: 1
37 proto_minor: 1
38 content_length: 1247
39 host: ""
40 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"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"4f736900e","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"c69319726","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"4f736900e","role":"tool"},{"content":"6","tool_call_id":"c69319726","role":"tool"}],"model":"zai-org/GLM-4.6:cerebras","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"}]}'
41 headers:
42 Accept:
43 - application/json
44 Content-Type:
45 - application/json
46 User-Agent:
47 - OpenAI/Go 2.7.1
48 url: https://router.huggingface.co/v1/chat/completions
49 method: POST
50 response:
51 proto: HTTP/2.0
52 proto_major: 2
53 proto_minor: 0
54 content_length: -1
55 body: '{"id":"chatcmpl-79f11d7a-dc2b-4e3e-9051-d44712aa2780","choices":[{"finish_reason":"stop","index":0,"message":{"content":"\nThe results are:\n- Addition: 2 + 3 = 5\n- Multiplication: 2 × 3 = 6","role":"assistant"}}],"created":1762855280,"model":"zai-glm-4.6","system_fingerprint":"fp_b78e4418d824cdcd64e8","object":"chat.completion","usage":{"total_tokens":408,"completion_tokens":32,"prompt_tokens":376},"time_info":{"queue_time":0.003082643,"prompt_time":0.008120705,"completion_time":0.030221978,"total_time":0.043164968490600586,"created":1762855280.5628223}}'
56 headers:
57 Content-Type:
58 - application/json
59 status: 200 OK
60 code: 200
61 duration: 19.670645958s