#AI Chat with HTTP Streaming
6 messages · Page 1 of 1 (latest)
The follow-up video from Sarah https://www.youtube.com/watch?v=kP0HYN6NpA0
Convex recently launched its support for the Vercel AI SDK, so we wanted to show off what you could do with it. Sarah goes over setting up your own AI Chat bot and how to use Hono for CORS middleware.
Sweet! Where’s the code that uses Hono like the YouTube video had?
I have the same question ^ @storm rivet
Also wondering why in the repo you're using OpenAI from openai vs openai from @ai-sdk/openai
To clarify, the blog post and the video are on two separate things (though both of them are a ChatGPT-like app leveraging Convex HTTP actions).
The blog post is https://github.com/sshader/streaming-chat-gpt (multi-person chat app with the ability to at-mention ChatGPT).
The video is https://github.com/sshader/next-openai-app-with-convex (https://github.com/sshader/next-openai-app-with-convex/pull/3/ for the Hono example) and shows how you can take a single person chat app like https://github.com/vercel/ai/tree/main/examples/next-openai using the Vercel AI SDK (https://sdk.vercel.ai/docs) and build it with Convex instead of Vercel edge functions.
I think I could've used @ai-sdk/openai in the blog post too, but wrote up the blog post first.
GitHub
Contribute to sshader/next-openai-app-with-convex development by creating an account on GitHub.
GitHub
Install dependencies:
npm install convex hono convex-helpers
Set up Convex project:
npx convex dev
Follow instructions here to set up an HTTP router
Port over logic from /api/chat endpoint
...