#AI Chat with HTTP Streaming

6 messages · Page 1 of 1 (latest)

storm rivet
sly lance
split citrus
#

Sweet! Where’s the code that uses Hono like the YouTube video had?

lone turret
#

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

storm rivet
#

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

An example of streaming ChatGPT via the OpenAI v4.0 node SDK. - sshader/streaming-chat-gpt

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

...

GitHub

Build AI-powered applications with React, Svelte, Vue, and Solid - vercel/ai

Welcome to the Vercel AI SDK documentation!