-
Notifications
You must be signed in to change notification settings - Fork 3
Complete AI SDK 5 migration #46
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
base: main
Are you sure you want to change the base?
Conversation
- Update ai package: 4.1.17 → 5.0.0 - Update @ai-sdk/openai: 1.1.12 → 2.0.0 - Update @ai-sdk/anthropic: 1.1.8 → 2.0.0 - Update zod: 3.23.8 → 4.1.8 - Refactor message structure: content → parts array - Update tool state names: call → input-available - Convert streaming API to v5 (createUIMessageStreamResponse removed) - Update dataStream API: writeData → write, parameters → inputSchema - Fix components to work with new UIMessage structure with parts array - Add ai-legacy npm alias for compatibility layer
|
@Devesh36 is attempting to deploy a commit to the tscircuit Team on Vercel. A member of the Team first needs to authorize it. |
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.
Confirm that no breaking changes in request/response structure
rushabhcodes
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.
LGTM!
|
Hey guys i appreciate you digging into this, but we don't have the bandwidth to maintain chat.tscircuit.com right now |
nailoo
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.
LGTM!
AI SDK 5 Migration
This PR completes the migration from AI SDK v4 to v5, addressing all 50+ TypeScript errors.
Changes:
Breaking Changes Addressed:
Testing: