Streaming an LLM response in Next.js 15 without the UI feeling broken
This story is from 2026-10-05. It is preserved in the archive; the latest stories are on the live feed.
Streaming is table stakes for an AI app now. People expect the answer to appear word by word, not after a 20-second spinner. Here's the setup I use in Next.js 15 with the Vercel AI SDK, plus the two things that quietly trip people up. The route handler // app/api/chat/route.ts import { openai } fro…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-05 17:41 · DEV Community — AI
Streaming an LLM response in Next.js 15 without the UI feeling broken