deps: bump @ai-sdk/google from 2.0.86 to 4.0.57 - #143
Conversation
Bumps [@ai-sdk/google](https://github.com/vercel/ai/tree/HEAD/packages/google) from 2.0.86 to 4.0.57. - [Release notes](https://github.com/vercel/ai/releases) - [Changelog](https://github.com/vercel/ai/blob/main/packages/google/CHANGELOG.md) - [Commits](https://github.com/vercel/ai/commits/@ai-sdk/google@4.0.57/packages/google) --- updated-dependencies: - dependency-name: "@ai-sdk/google" dependency-version: 4.0.57 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Supersedes the three separate Dependabot PRs for `ai`, `@ai-sdk/anthropic` and
`@ai-sdk/google`. They cannot land one at a time: `ai` v7 speaks
LanguageModelV4 and the v2 providers do not, so each PR alone fails while all
three together pass.
ai ^5.0.228 -> ^7.0.88 (#140)
@ai-sdk/anthropic ^2.0.93 -> ^4.0.46 (#142)
@ai-sdk/google ^2.0.86 -> ^4.0.60 (#143)
Four breaking changes, in two layers.
The harness reads usage. v7 moved the cache breakdown into `inputTokenDetails`
and redefined `inputTokens` as the *total* prompt count, cached reads included.
TokenUsage documents inputTokens and cachedInputTokens as disjoint and
priceUsage adds them, so a mechanical rename would have billed every cache read
twice — quietly, in a tool whose output is cost. `noCacheTokens` is the figure
v5's `inputTokens` used to carry; where a provider omits it we fall back to
total-minus-cached rather than to zero, so the invariant holds either way.
The test's scripted model needed three: MockLanguageModelV2 is now
MockLanguageModelV4 (the providers implement V4, so the mock should exercise the
same path), usage is two nested breakdowns rather than flat counters, and
finishReason is `{ unified, raw }` rather than a bare string. That last one is
why the first fix attempt still failed with no error: the model returned
successfully, the string finish reason simply meant no tool calls were seen, and
every conformance clause about tool calls went quiet rather than red.
`npm run check` passes: 290 files, 7554 tests.
|
Superseded by #144 — closing. This upgrade could not land on its own. The one worth knowing about: v7 redefined
|
|
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 If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps @ai-sdk/google from 2.0.86 to 4.0.57.
Changelog
Sourced from @ai-sdk/google's changelog.
... (truncated)
Commits
0a0f271Version Packages (#19857)949ef93fix(google): recognize Google Files URLs when using a baseUrl (#19868)3de1476Version Packages (#19842)e9bc618fix: Gemini 2.5 requests fail when frequency or presence penalties are config...3ad9da9fix: preserve complete Google Generative Language raw usage metadata (#19827)2fc3389Version Packages (#19816)56d492ffix: surface Google prompt-level safety blocks without candidates as content-...0379422Version Packages (#19778)1f7835cfeat: support Gemini 3.5 Transcribe on Google and Google Vertex providers (#1...c93fa8dVersion Packages (#19748)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 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)