We launched Convex Components to make adding features to your app easier! 🎉
Learn morenpm 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.