All templates

Streaming ChatGPT Chat Starter

Built with:

npm create convex -- -t ianmacartney/streaming-chat-gpt

An example of streaming ChatGPT via the OpenAI v4.0 node SDK. See this Stack post for more information.

This app makes up a name for your user using Faker.js and allows you to chat with other users: open up multiple tabs to try it out!

If your message includes "@gpt" it will kick off a request to OpenAI's chat completion API and stream the response, updating the message as data comes back from OpenAI.

Template hero image