You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the client.Responses.NewStreaming() method, I have noticed intermittent errors with the bufio.Scanner, resulting in this error: bufio.Scanner: token too long.
The text was updated successfully, but these errors were encountered:
We've also seen this issue, it happens when an SSE event is larger than bufio.MaxScanTokenSize (64k) . Incidently the newly released gpt-4.1 seems to generate tokens fast enough to go over that maximum fairly easily.
This is the construction site for the Scanner instance being overflowed:
When using the client.Responses.NewStreaming() method, I have noticed intermittent errors with the bufio.Scanner, resulting in this error:
bufio.Scanner: token too long
.The text was updated successfully, but these errors were encountered: