Skip to content

chore(deps): bump @ai-sdk/xai from 2.0.51 to 3.0.67#76

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/ai-sdk/xai-3.0.67
Closed

chore(deps): bump @ai-sdk/xai from 2.0.51 to 3.0.67#76
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/ai-sdk/xai-3.0.67

Conversation

@dependabot
Copy link

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

Bumps @ai-sdk/xai from 2.0.51 to 3.0.67.

Release notes

Sourced from @​ai-sdk/xai's releases.

@​ai-sdk/xai@​3.0.67

Patch Changes

  • Updated dependencies [ad4cfc2]
    • @​ai-sdk/provider-utils@​4.0.19
    • @​ai-sdk/openai-compatible@​2.0.35

@​ai-sdk/xai@​3.0.66

Patch Changes

  • Updated dependencies [824b295]
    • @​ai-sdk/provider-utils@​4.0.18
    • @​ai-sdk/openai-compatible@​2.0.34

@​ai-sdk/xai@​2.0.62

Patch Changes

  • Updated dependencies [6a2f01b]
  • Updated dependencies [17d64e3]
    • @​ai-sdk/provider-utils@​3.0.22
    • @​ai-sdk/openai-compatible@​1.0.34
Commits

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 6, 2026
@@ -67,7 +67,7 @@
"@ai-sdk/provider-utils": "3.0.21",
"@ai-sdk/togetherai": "1.0.34",
"@ai-sdk/vercel": "1.0.33",
"@ai-sdk/xai": "2.0.51",
"@ai-sdk/xai": "3.0.67",
Copy link

Choose a reason for hiding this comment

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

Bug: The update to @ai-sdk/xai creates a major version mismatch with its dependency @ai-sdk/provider-utils, which will cause a runtime error when the xAI provider is used.
Severity: HIGH

Suggested Fix

Update the dependencies in package.json to match the requirements of the new @ai-sdk/xai version. Specifically, upgrade @ai-sdk/provider-utils to a compatible v4+ version and @ai-sdk/openai-compatible to a compatible v2+ version, as recommended by the AI SDK migration guides.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/altimate-code/package.json#L70

Potential issue: The pull request updates the `@ai-sdk/xai` package to version `3.0.67`
but fails to update its peer dependencies. Specifically, `@ai-sdk/xai` v3 requires
`@ai-sdk/provider-utils` v4+, but the project's `package.json` still specifies version
`3.0.21`. If the application is built and deployed despite this conflict, any attempt to
use a model with the xAI provider will call the `createXai` function. This function will
then attempt to use APIs from `@ai-sdk/provider-utils` that do not exist in the older
version, leading to a runtime error due to missing methods or type incompatibilities.

Did we get this right? 👍 / 👎 to inform future reviews.

Bumps [@ai-sdk/xai](https://github.com/vercel/ai) from 2.0.51 to 3.0.67.
- [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-sdk/xai@2.0.51...@ai-sdk/xai@3.0.67)

---
updated-dependencies:
- dependency-name: "@ai-sdk/xai"
  dependency-version: 3.0.67
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ai-sdk/xai-3.0.67 branch from 09dd7af to a6f94e6 Compare March 6, 2026 20:34
"@ai-sdk/togetherai": "1.0.34",
"@ai-sdk/vercel": "1.0.33",
"@ai-sdk/xai": "2.0.51",
"@ai-sdk/xai": "3.0.67",
Copy link

Choose a reason for hiding this comment

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

Bug: The update to @ai-sdk/xai@3.0.67 creates a dependency mismatch with @ai-sdk/openai-compatible and @ai-sdk/provider-utils, which will cause runtime errors when using xAI models.
Severity: HIGH

Suggested Fix

Update package.json to use compatible versions of the peer dependencies. Upgrade @ai-sdk/openai-compatible to a 2.x version (e.g., 2.0.35) and @ai-sdk/provider-utils to a 4.x version (e.g., 4.0.19) to match the requirements of @ai-sdk/xai@3.0.67. Then, regenerate the lockfile.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/opencode/package.json#L71

Potential issue: The `package.json` is updated to use `@ai-sdk/xai@3.0.67`, a major
version bump. However, its peer dependencies, `@ai-sdk/openai-compatible` and
`@ai-sdk/provider-utils`, are not updated and remain pinned to older, incompatible major
versions (`1.0.32` and `3.0.21` respectively). The new version of `@ai-sdk/xai` requires
version `2.x` of `@ai-sdk/openai-compatible` and `4.x` of `@ai-sdk/provider-utils`. This
mismatch in major versions indicates breaking API changes. When a user selects an xAI
model, the `createXai` function will be called, leading to a runtime error or crash due
to incompatible API contracts between the packages.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 7, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ai-sdk/xai-3.0.67 branch March 7, 2026 02:49
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant