- Notifications
You must be signed in to change notification settings - Fork 3.9k
chore(deps): bump jsondiffpatch and ai in /packages/openai-adapters #9115
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?
chore(deps): bump jsondiffpatch and ai in /packages/openai-adapters #9115
Conversation
Removes [jsondiffpatch](https://github.com/benjamine/jsondiffpatch). It's no longer used after updating ancestor dependency [ai](https://github.com/vercel/ai). These dependencies need to be updated together. Removes `jsondiffpatch` Updates `ai` from 4.3.19 to 5.0.108 - [Release notes](https://github.com/vercel/ai/releases) - [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md) - [Commits](https://github.com/vercel/ai/compare/ai@4.3.19...ai@5.0.108) --- updated-dependencies: - dependency-name: jsondiffpatch dependency-version: dependency-type: indirect - dependency-name: ai dependency-version: 5.0.108 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
| No documentation updates needed. This PR only updates internal dependencies ( package from v4 to v5 and removes unused ). The existing documentation in |
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.
No issues found across 2 files
| No documentation updates needed. This PR only updates internal dependencies (ai package from v4 to v5 and removes unused jsondiffpatch). The existing documentation in VERCEL_AI_SDK.md is version-agnostic and does not require changes. |
- Change maxTokens to maxOutputTokens in generateText and streamText calls - Change tool call .args to .input property - Change usage.promptTokens/completionTokens to inputTokens/outputTokens - Update promptTokensDetails to inputTokensDetails These breaking changes align with Vercel AI SDK v5.0.0+ API. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev> Co-authored-by: nate <nate@continue.dev>
| Fixed TypeScript compilation errors caused by breaking changes in Vercel AI SDK v5: Changes made:
These align with the AI SDK v5.0.0 breaking changes documented in their release notes. The build should now pass. ✅ |
| ✅ Build fixed! The The TypeScript compilation errors in the Vercel AI SDK v5 integration have been resolved by updating the API calls to match the v5 breaking changes. Note: Some |
… compatibility - Update @ai-sdk/openai from ^1.0.10 to ^2.0.80 - Update @ai-sdk/anthropic from ^1.0.10 to ^2.0.54 - These v2 packages provide v2 specification models required by AI SDK v5.0.108 - Previous v1 packages only provided v1 models which are not supported by AI SDK v5 - This resolves AI_UnsupportedModelVersionError in Vercel SDK integration tests Generated with [Continue](https://continue.dev) Co-authored-by: nate <nate@continue.dev> Co-Authored-By: Continue <noreply@continue.dev>
Additional fixes for AI SDK v5 compatibilityUpdated the provider packages to v2 to fix the
Root CauseAI SDK v5.0.108 requires models with specification version Changes Made
The Vercel SDK integration tests require API keys to run but the contract should now be compatible with AI SDK v5. |
Generated with [Continue](https://continue.dev) Co-authored-by: nate <nate@continue.dev> Co-Authored-By: Continue <noreply@continue.dev>
AI SDK v5 renamed the tool property from 'parameters' to 'inputSchema'. This was causing tool schema validation errors where the SDK couldn't recognize the tool definitions. Fixes tool calling tests that were failing with: - 'Invalid schema for function' errors - 'got type: None' errors Co-authored-by: nate <nate@continue.dev> Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev>
Removes jsondiffpatch. It's no longer used after updating ancestor dependency ai. These dependencies need to be updated together.
Removes
jsondiffpatchUpdates
aifrom 4.3.19 to 5.0.108Commits
e559615Version Packages (#10920)03cafbcBackport: chore(ai): export ContentPart type (#10905)7ed7886Version Packages (#10900)21c9f90Backport: fix(ai): remove unused mode setting from generateObject and streamO...4ae103cBackport: chore(examples) : next.js update for CVE-2025-66478 (#10887)724fe17Version Packages (#10874)1887f82Backport: fix(bedrock): send {} as tool input when streaming tool calls witho...827f306Backport: chore (docs): reorganize migration guides (#10871)696ef43Version Packages (#10847)c36a1adBackport: feat(provider/bedrock): Support Nova 2 extended reasoning `maxReaso...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Upgrade ai to v5 in openai-adapters and remove jsondiffpatch. Update adapters to use Vercel AI SDK v5 APIs (chat models, maxOutputTokens, tool.input, inputSchema, usage fields) to prevent breakage.
Written for commit 82d90ff. Summary will update automatically on new commits.