sse-starlette icon indicating copy to clipboard operation
sse-starlette copied to clipboard

With the default sep '\r\n', some chunk send to the client is missing

Open xiaoxinw opened this issue 5 months ago • 0 comments

I'm encountering a strange issue. When using the default separator '\r\n' and sending a relatively large chunk (which is an OpenAI message, potentially with large content), the client does not receive this chunk. However, subsequent chunks are received without any problem. After changing the separator to '\n', the issue was resolved. Does anyone know the reason behind this?

xiaoxinw avatar Sep 11 '24 08:09 xiaoxinw