BUG: Streaming packets changed

It looks like this library is not parsing SSE outputs correctly. It assumes that when the stream content is split by \n\ndata:, each line is valid JSON. However, SSE clients should buffer output until they hit a separator character and only then parse the chunk into JSON.

1 Like

Regardless the way its streamed has changed today or this weekend.
and sending partial JSON packets between 2 packets is just annoying

If you are using Javascript/Typescript, make sure to use GitHub - rexxars/eventsource-parser: Streaming, source-agnostic EventSource/Server-Sent Events parser for buffering the chunk data.

Hi all, upon further investigation we have determined that there was indeed a bug that affected a subset of streaming responses on v1/chat/completions from 10:19 AM PT to 2:41 PM PT. This was fixed and impact stopped at 2:41 PM PT. Apologies for the downtime, and we are fixing the root cause as a follow-up.

5 Likes