til
TIL: Aug 1
tilengineering
TIL: When streaming AI responses on Vercel, removing req.signal from your streamText implementation can prevent premature proxy aborts, while disabling CDN stream buffering ensures lower latency for LLM tokens. Additionally, if the Gemini API throws compatibility errors, explicitly stripping leading assistant messages from the history array is often necessary to maintain a clean context window.