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: 525
10 host: ""
11 body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"openai/gpt-oss-20b","max_completion_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}'
12 headers:
13 Accept:
14 - application/json
15 Content-Type:
16 - application/json
17 User-Agent:
18 - OpenAI/Go 2.7.1
19 url: http://localhost:8080/v1/chat/completions
20 method: POST
21 response:
22 proto: HTTP/1.1
23 proto_major: 1
24 proto_minor: 1
25 transfer_encoding:
26 - chunked
27 content_length: -1
28 body: |+
29 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
30
31 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"User"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
32
33 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" wants"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
34
35 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
36
37 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" in"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
38
39 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Florence"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
40
41 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":","}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
42
43 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" Italy"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
44
45 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
46
47 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" We"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
48
49 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" can"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
50
51 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" use"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
52
53 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" the"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
54
55 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" weather"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
56
57 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":" function"}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
58
59 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"reasoning_content":"."}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
60
61 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","type":"function","function":{"name":"weather","arguments":"{\""}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
62
63 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
64
65 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
66
67 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
68
69 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
70
71 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
72
73 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
74
75 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
76
77 data: {"choices":[{"finish_reason":"tool_calls","index":0,"delta":{}}],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
78
79 data: {"choices":[],"created":1762855700,"id":"chatcmpl-lz25qRqbjeLO8nbwF4DJYJQc7KjZrG2z","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":41,"prompt_tokens":139,"total_tokens":180},"timings":{"cache_n":138,"prompt_n":1,"prompt_ms":8.691,"prompt_per_token_ms":8.691,"prompt_per_second":115.06155793349441,"predicted_n":41,"predicted_ms":339.279,"predicted_per_token_ms":8.27509756097561,"predicted_per_second":120.84449671214546}}
80
81 data: [DONE]
82
83 headers:
84 Content-Type:
85 - text/event-stream
86 status: 200 OK
87 code: 200
88 duration: 859.5µs
89- id: 1
90 request:
91 proto: HTTP/1.1
92 proto_major: 1
93 proto_minor: 1
94 content_length: 877
95 host: ""
96 body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_content":"User wants weather in Florence, Italy. We can use the weather function."},{"content":"40 C","tool_call_id":"g2KOIWzn722hzEaZQmNVP4roUPEiYafL","role":"tool"}],"model":"openai/gpt-oss-20b","max_completion_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}'
97 headers:
98 Accept:
99 - application/json
100 Content-Type:
101 - application/json
102 User-Agent:
103 - OpenAI/Go 2.7.1
104 url: http://localhost:8080/v1/chat/completions
105 method: POST
106 response:
107 proto: HTTP/1.1
108 proto_major: 1
109 proto_minor: 1
110 transfer_encoding:
111 - chunked
112 content_length: -1
113 body: |+
114 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":null}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
115
116 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"The"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
117
118 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" current"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
119
120 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" weather"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
121
122 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" in"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
123
124 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Florence"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
125
126 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":","}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
127
128 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" Italy"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
129
130 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" is"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
131
132 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" **"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
133
134 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"40"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
135
136 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":" "}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
137
138 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"°C"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
139
140 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"**"}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
141
142 data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"."}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
143
144 data: {"choices":[{"finish_reason":"stop","index":0,"delta":{}}],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk"}
145
146 data: {"choices":[],"created":1762855700,"id":"chatcmpl-PRVO688pTstdVIzbBa8S5l5QzcgoxAWl","model":"openai/gpt-oss-20b","system_fingerprint":"b7010-c27efd2bd","object":"chat.completion.chunk","usage":{"completion_tokens":18,"prompt_tokens":196,"total_tokens":214},"timings":{"cache_n":160,"prompt_n":36,"prompt_ms":79.853,"prompt_per_token_ms":2.218138888888889,"prompt_per_second":450.8283971798179,"predicted_n":18,"predicted_ms":145.366,"predicted_per_token_ms":8.07588888888889,"predicted_per_second":123.82537869928318}}
147
148 data: [DONE]
149
150 headers:
151 Content-Type:
152 - text/event-stream
153 status: 200 OK
154 code: 200
155 duration: 2.05025ms