Skip to content

chore(deps): bump ai from 4.3.19 to 5.0.52 in /examples/node/observability-vercel-ai#3878

Draft
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/examples/node/observability-vercel-ai/ai-5.0.52
Draft

chore(deps): bump ai from 4.3.19 to 5.0.52 in /examples/node/observability-vercel-ai#3878
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/examples/node/observability-vercel-ai/ai-5.0.52

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

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 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.

Open with Devin

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/ai@4.3.19...ai@5.0.52)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 2, 2026
@vercel
Copy link

vercel bot commented Mar 2, 2026

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

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 2, 2026 2:23pm

Request Review

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 2, 2026
@mmabrouk mmabrouk self-requested a review March 3, 2026 11:06
@mmabrouk mmabrouk marked this pull request as draft March 3, 2026 11:06
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

"@opentelemetry/sdk-trace-node": "^1.28.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"ai": "^4.3.16",
"ai": "^5.0.52",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 @ai-sdk/openai not bumped to v3.x, incompatible with ai@5.x due to major provider interface mismatch

The ai package is bumped from v4 to v5 (^5.0.52), but @ai-sdk/openai remains at ^1.3.22. These versions are incompatible because they depend on different major versions of the shared @ai-sdk/provider interface:

  • @ai-sdk/openai@1.3.24 depends on @ai-sdk/provider@1.1.3 and @ai-sdk/provider-utils@2.2.8
  • ai@5.0.52 depends on @ai-sdk/provider@2.0.0 and @ai-sdk/provider-utils@3.0.9
Root cause and impact

The model object returned by openai("gpt-4o-mini") from @ai-sdk/openai@1.x implements the @ai-sdk/provider@1.x LanguageModel interface. However, generateText from ai@5.x expects a model conforming to the @ai-sdk/provider@2.x interface. Since @ai-sdk/provider went through a major version bump (1.x → 2.x), the internal contracts between provider and SDK have changed.

The npm registry shows that @ai-sdk/openai v3.x is the version line designed for ai@5.x. The @ai-sdk/openai dependency at examples/node/observability-vercel-ai/package.json:10 should be bumped to ^3.0.0 (or a compatible v3 range) to match the ai@5.x upgrade.

Impact: The example application (app.js:11-27) will fail at runtime when generateText receives an incompatible model object, making this example non-functional.

Prompt for agents
In examples/node/observability-vercel-ai/package.json, bump @ai-sdk/openai from ^1.3.22 to ^3.0.0 (or latest 3.x) on line 10 to match the ai@5.x major version upgrade. The @ai-sdk/openai 1.x line uses @ai-sdk/provider 1.x interfaces which are incompatible with ai 5.x (which uses @ai-sdk/provider 2.x). After updating package.json, regenerate the package-lock.json by running npm install in the examples/node/observability-vercel-ai/ directory.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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

None yet

Development

Successfully merging this pull request may close these issues.

0 participants