How to Stream any ChatGPT Generation to Your Client in NextJS

With ChatGPT, you can always stream your data to the console, but no one can use that except for the developer. How do we make it accessible anywhere on the client?

Jake Krajewski
Level Up Coding
Published in
9 min readJun 21, 2023

--

This is an intermediate/advanced tutorial, but it’s worth the trouble. And it’s easier than it looks. This will work for anyone who is building something with Langchain or OpenAI in NextJs.

--

--

☧ Cognitive Science Master, Experienced digital product designer. Formerly @GoPro . Exploring the intersection of tech, startups, and a.i./deep learning