-
Notifications
You must be signed in to change notification settings - Fork 46
[AIT-205] Add Vercel AI SDK message per token guide #3128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR adds comprehensive documentation for implementing token streaming with the Vercel AI SDK using Ably's message-per-token pattern. It includes navigation updates, a guide tile, and a detailed guide with publisher and subscriber code examples demonstrating real-time response reconstruction. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
2bb06e5 to
ee3fbf5
Compare
mschristensen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good, just a few small comments but approving ahead of those changes.
| This guide uses version 5.x of the AI SDK. You can use any model from any [supported provider](https://ai-sdk.dev/providers/ai-sdk-providers) by specifying it as a string (e.g., `'openai/gpt-4o'`, `'anthropic/claude-sonnet-4'`). Some details of interacting with the SDK may differ if using a different major version. | ||
| </Aside> | ||
|
|
||
| Export your AI provider API key to the environment, which will be used later in the guide by the Vercel AI SDK: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be:
| Export your AI provider API key to the environment, which will be used later in the guide by the Vercel AI SDK: | |
| Export your Vercel AI Gateway API key to the environment, which will be used later in the guide by the Vercel AI SDK: |
I'm looking at: https://ai-sdk.dev/docs/getting-started/nodejs#configure-vercel-ai-gateway-api-key
src/pages/docs/guides/ai-transport/vercel-message-per-token.mdx
Outdated
Show resolved
Hide resolved
src/pages/docs/guides/ai-transport/vercel-message-per-token.mdx
Outdated
Show resolved
Hide resolved
src/pages/docs/guides/ai-transport/vercel-message-per-token.mdx
Outdated
Show resolved
Hide resolved
src/pages/docs/guides/ai-transport/vercel-message-per-token.mdx
Outdated
Show resolved
Hide resolved
ee3fbf5 to
83af465
Compare
Description
Follows the structure and content of other message-per-token guides for the Vercel AI SDK.
Review App
Checklist
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.