Streaming responses arrive in small chunks, not whole words. If your frontend renders each chunk the instant it arrives without buffering partial words, text can visibly cut off or flicker mid-word even though the full response is being sent correctly.
The fix:
buffer incoming stream chunks until you have a complete word or reasonable unit before rendering, rather than rendering every raw chunk immediately as it arrives.
Comments
No comments yet — be the first.