File tree Expand file tree Collapse file tree
pkg/model/provider/openai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,22 +152,22 @@ func TestWSStream_IgnoresEmptyFrames(t *testing.T) {
152152 return
153153 }
154154
155- require .NoError (t , conn .WriteMessage (websocket .TextMessage , []byte (" " )))
156- require .NoError (t , conn .WriteJSON (map [string ]any {
155+ assert .NoError (t , conn .WriteMessage (websocket .TextMessage , []byte (" " )))
156+ assert .NoError (t , conn .WriteJSON (map [string ]any {
157157 "type" : "response.output_text.delta" ,
158158 "delta" : "Hi from OVH" ,
159159 "item_id" : "item_1" ,
160160 }))
161- require .NoError (t , conn .WriteJSON (map [string ]any {
161+ assert .NoError (t , conn .WriteJSON (map [string ]any {
162162 "type" : "response.completed" ,
163163 "response" : map [string ]any {
164164 "id" : "resp_ovh" ,
165165 "output" : []any {},
166166 "usage" : map [string ]any {
167- "input_tokens" : 4 ,
168- "output_tokens" : 3 ,
169- "total_tokens" : 7 ,
170- "input_tokens_details" : map [string ]any {"cached_tokens" : 0 },
167+ "input_tokens" : 4 ,
168+ "output_tokens" : 3 ,
169+ "total_tokens" : 7 ,
170+ "input_tokens_details" : map [string ]any {"cached_tokens" : 0 },
171171 "output_tokens_details" : map [string ]any {"reasoning_tokens" : 0 },
172172 },
173173 },
You can’t perform that action at this time.
0 commit comments