Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 10, 2025

Bumps ai from 4.3.19 to 5.0.52.

Commits
  • 63d5f66 Version Packages (#8895)
  • 930399b Backport: fix(ai): download files when intermediate file cannot be downloaded...
  • 7ca78f1 Backport: feat(provider/gateway): Add new Qwen models to Gateway model string...
  • 1cfc209 Backport: feat(provider/openai): OpenAILanguageModelOptions type (#8858)
  • 347b7ec ci: rename v5.0 branch to release-v*
  • 85909a9 Backport: chore(ai): update test message (#8875)
  • c56822d Backport: fix(ai): update uiMessageChunkSchema to satisfy the `UIMessageChu...
  • 1461adf Backport: chore(examples): remove redundant OpenAI reasoning examples (#8871)
  • 6bd07df Version Packages (#8853)
  • a45d61a ci(release): remove incorrect changeset bump for @ai-sdk/baseten
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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 SDK to v5.0.52 in openai-adapters. This brings Gateway support, updates provider packages, and removes unused React/UI dependencies.

  • Dependencies

    • Bump ai from 4.3.19 to 5.0.52.
    • Add @ai-sdk/gateway; upgrade @ai-sdk/provider to 2.0.0 and @ai-sdk/provider-utils to 3.0.9.
    • Drop React-related subpackages and SWR/throttleit from transitive deps.
  • Migration

    • Ensure zod ^3.25.76 or ^4 is available in the workspace (new ai peer dep).
    • No code changes in this package; Node 18+ still required.

Written for commit 2be85fb. Summary will update automatically on new commits.

Bumps [ai](https://github.com/vercel/ai) from 4.3.19 to 5.0.52.
- [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/[email protected]@5.0.52)

---
updated-dependencies:
- dependency-name: ai
  dependency-version: 5.0.52
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 10, 2025
@dependabot dependabot bot requested a review from a team as a code owner December 10, 2025 23:07
@dependabot dependabot bot requested review from RomneyDa and removed request for a team December 10, 2025 23:07
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 10, 2025
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 10, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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

@continue
Copy link
Contributor

continue bot commented Dec 10, 2025

📝 Documentation Update

I've reviewed the AI SDK upgrade from v4.3.19 to v5.0.52 and created PR #9117 with necessary documentation updates to VERCEL_AI_SDK.md.

Key documentation changes:

  • Documents the version upgrade and breaking changes in provider abstractions
  • Notes the new zod peer dependency requirement (^3.25.76 || ^4)
  • Clarifies that breaking changes are handled internally and consumers should see no behavior changes
  • Documents removal of React-related dependencies

Please review and merge #9117 into this PR before merging to main.

@continue
Copy link
Contributor

continue bot commented Dec 10, 2025

⚠️ Build Failure Detected

The CI build is failing due to breaking API changes in Vercel AI SDK v5. The openai-adapters code needs to be updated to handle the v5 API changes before this PR can be merged.

TypeScript errors:

  • maxTokens → needs to be updated for v5 API
  • Tool call args property → changed in v5
  • Usage token properties (promptTokens, completionTokens) → changed in v5

My documentation PR #9117 documents the v5 upgrade, but the code changes to fix these compilation errors are outside my scope as I only handle documentation updates.

The maintainers will need to update the Vercel AI SDK integration code in src/apis/Anthropic.ts and src/apis/OpenAI.ts to be compatible with v5 before this dependency upgrade can proceed.

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant