@ai-sdk/google
4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/google From 3.0.120 to 3.0.147
27 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- Fixed
Limit the size of Google Vertex tool result file downloads with
toolResultDownloads.maxBytes, which defaults to 7 MiB. This is lower than the previous 2 GiB default for these downloads; raisetoolResultDownloads.maxBytesfor larger files.
- Fixed
- New
Add the
gemini-4-hydrogenmodel ID and support Hydrogen'sxhighthinking level in Google Generate Content and Interactions provider options.
- New
- New
Add support for the
gemini-4-carbonmodel with the same capabilities asgemini-4-argon.
- New
- Fixed
Preserve the served service tier from the
x-gemini-service-tierresponse header when usage metadata omits it, for generated and streamed responses. - Fixed
Apply contiguous array-index validation to dotted numeric paths in streamed tool arguments, while preserving numeric object keys and valid contiguous array updates.
- Fixed
- Fixed
Bound Google JSON Schema conversion work, output size, and depth to prevent excessive resource use when inlining repeated local references. Input inspection and conversion each have a separate budget of 10,000 visited JSON values and a conservative 1,000,000-character serialized-size allowance, with a depth limit of 100. Schemas exceeding these limits now fail with a controlled error, including large schemas that were previously accepted. String-size accounting reserves six characters per UTF-16 code unit for JSON escaping.
- Fixed
Pass
providerOptions.google.labelsthrough to Google and Vertex AI Interactions requests, including streaming, so callers can attach request metadata such assafety_identifier. - Fixed
Skip streamed tool-call array indexes that leave a gap so a small response can't build a huge sparse array
- Fixed
- Fixed
Omit Google provider-defined tools, including File Search and Vertex RAG Store, when
toolChoiceisnoneso disabled tools cannot retrieve data or execute server-side. Preserve function declarations needed by conversation history while disabling function calling.
- Fixed
- Fixed
google: Handle cycles and BigInt in functionResponse and parse string functionCall arguments
- Fixed
Omit all Google Interactions tools when
toolChoiceisnone, including provider-defined tools. - Fixed
Map Google RPC status names to HTTP status codes when streamed errors omit a numeric code, so transient failures such as
UNAVAILABLEandRESOURCE_EXHAUSTEDare marked retryable.
- Fixed
- New
Add videoMetadata support for file parts. Pass startOffset, endOffset, and fps through per-file providerOptions to control video clipping and frame rate with the Google and Google Vertex providers.
- New
17 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.