Skip to content

deps: bump @ai-sdk/google from 2.0.86 to 4.0.57 - #143

Closed
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/npm_and_yarn/ai-sdk/google-4.0.57
Closed

deps: bump @ai-sdk/google from 2.0.86 to 4.0.57#143
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/npm_and_yarn/ai-sdk/google-4.0.57

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 1, 2026

Copy link
Copy Markdown
Contributor

Bumps @ai-sdk/google from 2.0.86 to 4.0.57.

Changelog

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

4.0.57

Patch Changes

  • 949ef93: fix(google): recognize Google Files URLs when using a baseUrl
  • Updated dependencies [90192f1]
    • @​ai-sdk/provider-utils@​5.0.33

4.0.56

Patch Changes

  • 3ad9da9: Preserve complete Google Generative Language usage metadata in raw usage results.
  • e9bc618: Omit unsupported frequency and presence penalties from Gemini 2.5 requests and return warnings instead.

4.0.55

Patch Changes

  • 56d492f: Surface prompt-level Google safety blocks without candidates as content-filter results with prompt feedback metadata.

4.0.54

Patch Changes

  • 1f7835c: feat (provider/google, provider/google-vertex): Gemini 3.5 Transcribe support — unary transcription (gemini-3.5-transcribe) via generateContent with language detection, speaker diarization, word timestamps, and custom vocabulary, plus streaming transcription (gemini-3.5-transcribe-live) over the Live API WebSocket with mode: 'VERBATIM' | 'SMART' transcription formatting

4.0.53

Patch Changes

  • Updated dependencies [3e125ba]
    • @​ai-sdk/provider-utils@​5.0.32

4.0.52

Patch Changes

  • 7de3612: Encode provider-returned identifiers before using them in credentialed follow-up request paths.
  • a9782e1: fix: align batch result parsing, request counts, and lifecycle behavior across providers
  • 92e08e6: Preserve recursive tool input schemas without aborting Google model calls.
  • 35841f5: feat: normalize mid-stream provider error events across supported providers into public StreamProviderError instances and preserve provider-owned type, code, status, retry, and raw payload metadata
  • 0246209: Fix Google file uploads failing to type-check with TypeScript 5.9 DOM types.
  • Updated dependencies [a9782e1]
  • Updated dependencies [35841f5]
  • Updated dependencies [d2f3353]
    • @​ai-sdk/provider-utils@​5.0.31

4.0.51

... (truncated)

Commits
  • 0a0f271 Version Packages (#19857)
  • 949ef93 fix(google): recognize Google Files URLs when using a baseUrl (#19868)
  • 3de1476 Version Packages (#19842)
  • e9bc618 fix: Gemini 2.5 requests fail when frequency or presence penalties are config...
  • 3ad9da9 fix: preserve complete Google Generative Language raw usage metadata (#19827)
  • 2fc3389 Version Packages (#19816)
  • 56d492f fix: surface Google prompt-level safety blocks without candidates as content-...
  • 0379422 Version Packages (#19778)
  • 1f7835c feat: support Gemini 3.5 Transcribe on Google and Google Vertex providers (#1...
  • c93fa8d Version Packages (#19748)
  • 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)

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>
@dependabot dependabot Bot added the dependencies Dependency updates (Dependabot) label Sep 1, 2026
DeDuva added a commit that referenced this pull request Sep 1, 2026
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.
@DeDuva

DeDuva commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Superseded by #144 — closing.

This upgrade could not land on its own. ai v7 speaks LanguageModelV4 and the v2 providers do not, so ai, @ai-sdk/anthropic and @ai-sdk/google had to move together; #144 does all three, plus the four breaking changes they require in packages/squad-lab.

The one worth knowing about: v7 redefined usage.inputTokens as the total prompt count including cache reads, while this repo's TokenUsage documents it as disjoint from cachedInputTokens and priceUsage adds the two. Carrying the field across unchanged would have double-billed every cache read — silently, in the tool whose output is cost.

npm run check passes on the combined change: 290 files, 7554 tests.

@DeDuva DeDuva closed this Sep 1, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

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/google-4.0.57 branch September 1, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates (Dependabot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant