Skip to content

Commit 1885404

Browse files
committed
fix(client.go): update error message for clarity on token-chunk timeout in chunkReader read method
1 parent 9e3d12c commit 1885404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func (r chunkReader[Stream]) read(ctx context.Context, getChunk func(Stream) (ch
340340
timeout.Stop()
341341
return text.String(), ctx.Err()
342342
case <-timeout.C:
343-
return text.String(), fmt.Errorf("chunk timeout")
343+
return text.String(), fmt.Errorf("token-chunk timeout")
344344
case err := <-errC:
345345
timeout.Stop()
346346
return text.String(), err

0 commit comments

Comments
 (0)