Skip to content

Add AI SDK useChat transport#182

Draft
alex-grover wants to merge 1 commit into
alex/qtonqzslfrom
alex/lqwvyrky
Draft

Add AI SDK useChat transport#182
alex-grover wants to merge 1 commit into
alex/qtonqzslfrom
alex/lqwvyrky

Conversation

@alex-grover

Copy link
Copy Markdown
Member

Our React SDK integrates with the AI SDK's useChat hook via a custom ChatTransport. This converts from v0's chat and message format into AI SDK UIMessages. We use useChat for client-side state management and sending messages. Also adds a simple example Next.js app showing how to build backend routes that proxy to the v0 SDK, and get called by our React hooks to load messages, send messages, reconnect to existing streams, and cancel actively streaming messages.

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
v0-sdk-clone-demo Error Error Open in v0 Jul 24, 2026 10:44pm
v0-sdk-playground Error Error Open in v0 Jul 24, 2026 10:44pm
v0-sdk-simple-demo Error Error Open in v0 Jul 24, 2026 10:44pm

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​ai-sdk/​react@​4.0.34991007598100
Addednpm/​ai@​7.0.319910010099100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant