File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 379379 if stream_fn then
380380 sink = ltn12 .sink .chain (stream_fn , sink )
381381 end
382- local _ , status , out_headers = self :get_http ().request ({
382+ local _ , status , out_headers = assert ( self :get_http ().request ({
383383 sink = sink ,
384384 source = source ,
385385 url = url ,
386386 method = method ,
387387 headers = headers
388- })
388+ }))
389389 local response = table.concat (out )
390390 pcall (function ()
391391 response = cjson .decode (response )
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ class OpenAI
397397 if stream_fn
398398 sink = ltn12. sink. chain stream_fn, sink
399399
400- _, status, out_headers = @get_http !. request {
400+ _, status, out_headers = assert @get_http !. request {
401401 : sink
402402 : source
403403 : url
You can’t perform that action at this time.
0 commit comments