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
Merged #148, thanks. Hopefully this won't cause problems with other deployment providers.
Technically the output of the /llms/stream API is a progressive text (e.g. token by token, or around 3 charts at a time) and not an event stream (a very special encoded text with new lines and all), but if this workaround works then the correctness doesn't matter much.
Closing this ticket. Not sure this is the correct technical solution, as we stream plain text and not 'events' (from our backend (edge functions) to our UI). But so far there seem to be no issues.
The content type of
/llms/stream
should betext/event-stream
. This align with the response from OpenAI endpoint as well.Actually, this is already causing issue with cloudflared.
When deployed with cloudflared (cloudflare tunnel), the text will be buffered until the stream ends.
It seems like setting
Content-Type
to will fix the issue.We can simply change this line to fix it.
The text was updated successfully, but these errors were encountered: