Skip to content

chore(deps): bump @openrouter/ai-sdk-provider from 1.5.4 to 2.2.3#74

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/openrouter/ai-sdk-provider-2.2.3
Closed

chore(deps): bump @openrouter/ai-sdk-provider from 1.5.4 to 2.2.3#74
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/openrouter/ai-sdk-provider-2.2.3

Conversation

@dependabot
Copy link

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

Bumps @openrouter/ai-sdk-provider from 1.5.4 to 2.2.3.

Release notes

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

2.2.3

What's Changed

Full Changelog: OpenRouterTeam/ai-sdk-provider@2.2.2...2.2.3

2.2.2

What's Changed

Full Changelog: OpenRouterTeam/ai-sdk-provider@2.2.1...2.2.2

2.2.1

What's Changed

Full Changelog: OpenRouterTeam/ai-sdk-provider@2.2.0...2.2.1

2.2.0

What's Changed

Full Changelog: OpenRouterTeam/ai-sdk-provider@2.1.1...2.2.0

2.1.1

... (truncated)

Changelog

Sourced from @​openrouter/ai-sdk-provider's changelog.

2.2.3

Patch Changes

  • #409 7b21d68 Thanks @​robert-j-y! - Compute missing token usage detail fields from available API data

    Previously, inputTokens.noCache, outputTokens.text, and inputTokens.cacheWrite were always undefined, even when the data to compute them was available in the API response. This caused downstream dashboards and analytics to receive misleading values.

    Now the provider computes these fields:

    • inputTokens.noCache = total - cacheRead (non-cached input tokens)
    • outputTokens.text = total - reasoning (text output tokens)
    • inputTokens.cacheWrite = passthrough from cache_write_tokens when available

    This applies to all code paths: chat doGenerate, chat doStream, completion doGenerate, and completion doStream.

2.2.2

Patch Changes

  • #405 f7139f1 Thanks @​robert-j-y! - Support files parameter in image generation for image editing and image-to-image use cases

2.2.1

Patch Changes

  • #403 e3908c6 Thanks @​robert-j-y! - Add support for auto-router plugin to configure allowed models when using openrouter/auto

2.2.0

Minor Changes

  • #399 ad0c2e1 Thanks @​robert-j-y! - Fix system message cache control to use block-level format

    When cache control is specified on a system message via providerOptions, the content is now converted to array format with cache_control on the text block, matching the existing behavior for user messages. This ensures consistent Anthropic prompt caching behavior across all message types.

    Before (message-level cache_control):

    {
      "role": "system",
      "content": "...",
      "cache_control": { "type": "ephemeral" }
    }

    After (block-level cache_control):

    {

... (truncated)

Commits
  • 7c043a0 Version Packages (#410)
  • 7b21d68 fix: compute missing token usage detail fields (noCache, text, cacheWrite) (#...
  • e878b92 Version Packages (#408)
  • f7139f1 feat: support files parameter in image generation for image editing (#405)
  • 260a42d Version Packages (#404)
  • e3908c6 feat: add support for auto-router plugin (#403)
  • 918eb4e Version Packages (#401)
  • ad0c2e1 fix: always use array content for system messages with block-level cache cont...
  • bf935d3 Version Packages (#400)
  • 50c932c feat: add support for reasoning effort values xhigh, minimal, none (#398)
  • 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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 6, 2026
@@ -82,7 +82,7 @@
"@octokit/graphql": "9.0.2",
"@octokit/rest": "catalog:",
"@openauthjs/openauth": "catalog:",
"@openrouter/ai-sdk-provider": "1.5.4",
"@openrouter/ai-sdk-provider": "2.2.3",
Copy link

Choose a reason for hiding this comment

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

Bug: The @openrouter/ai-sdk-provider dependency was updated, but the corresponding version-specific patch in patchedDependencies was not. The patch will no longer be applied, causing a silent regression.
Severity: HIGH

Suggested Fix

Create a new patch file for @openrouter/ai-sdk-provider version 2.2.3 that includes the necessary modifications. Update the patchedDependencies entry in the root package.json to point to the new patch file for version 2.2.3. After updating, run the package manager's install command to apply the patch and update 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/altimate-code/package.json#L85

Potential issue: The version of the `@openrouter/ai-sdk-provider` dependency was updated
to `2.2.3`, but the corresponding entry in `patchedDependencies` in the root
`package.json` was not updated. The existing patch is specifically for version `1.5.4`.
As a result, the patch, which adds the `providerMetadata.openrouter.reasoning_details`
field to `reasoning-end` stream events, will no longer be applied. This will cause a
silent regression where any code consuming
`providerMetadata?.openrouter?.reasoning_details` will receive `undefined`, leading to
malfunctioning features that rely on these reasoning details from OpenRouter streams.

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

Bumps [@openrouter/ai-sdk-provider](https://github.com/OpenRouterTeam/ai-sdk-provider) from 1.5.4 to 2.2.3.
- [Release notes](https://github.com/OpenRouterTeam/ai-sdk-provider/releases)
- [Changelog](https://github.com/OpenRouterTeam/ai-sdk-provider/blob/main/CHANGELOG.md)
- [Commits](OpenRouterTeam/ai-sdk-provider@v1.5.4...2.2.3)

---
updated-dependencies:
- dependency-name: "@openrouter/ai-sdk-provider"
  dependency-version: 2.2.3
  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/openrouter/ai-sdk-provider-2.2.3 branch from 19c929b to fa555e1 Compare March 6, 2026 20:34
"@opencode-ai/sdk": "workspace:*",
"@opencode-ai/util": "workspace:*",
"@openrouter/ai-sdk-provider": "1.5.4",
"@openrouter/ai-sdk-provider": "2.2.3",
Copy link

Choose a reason for hiding this comment

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

Bug: The patchedDependencies entry for @openrouter/ai-sdk-provider was not updated to 2.2.3, causing the patch to fail and breaking related functionality.
Severity: HIGH

Suggested Fix

Update the patchedDependencies entry in the root package.json to reference the new version 2.2.3. This may require regenerating the patch for the new version. After updating the package.json, run bun install to update the bun.lockb file with the correct dependency and patch information.

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#L86

Potential issue: The version of the `@openrouter/ai-sdk-provider` dependency was updated
from `1.5.4` to `2.2.3`, but the corresponding entry in `patchedDependencies` in the
root `package.json` was not updated. The patch is keyed to the specific version `1.5.4`.
When `bun install` runs, it will install version `2.2.3` but will fail to apply the
patch because the version in the patch key does not match. This will lead to the loss of
functionality provided by the patch, such as support for `reasoning_details` in
OpenRouter.

@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/openrouter/ai-sdk-provider-2.2.3 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