
Build a Streaming AI Chat App with Next.js and an OpenAI-Compatible API
A working Next.js App Router chat app that streams model output from an OpenAI-compatible API, with the API key kept on the server. Code checked against openai 7 types.
4 min read