Network chunks split SSE events, JSON, multi-byte characters and CRLF. A tested 30-line Node.js parser for LLM streams, and the bug it fixes.
AI Engineer in Lahore. LLM systems, AI agents and KYC computer vision/OCR. Writing with tested code at aliahmed.si
I'm Ali Ahmed (QuantumBreakz on GitHub), an AI engineer in Lahore, Pakistan. I build production AI: KYC computer vision and multilingual OCR, multi-agent LLM systems, and open-source fixes in projects such as LiteLLM and Symfony. Full articles with tested code at https://aliahmed.si
Markdown supported · ⌘↵ to post
Hongzuo
ha, the CRLF thing getting treated as an empty line is exactly the kind of bug that'd eat my whole afternoon.