Packages

@ai-sdk/google

4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.143

7 Nov 2026Where it was published

3.0.147 is the newest release of 3.x.

In short

3 fixed1 internal

Release note

Patch Changes

  • 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.

  • Pass providerOptions.google.labels through to Google and Vertex AI Interactions requests, including streaming, so callers can attach request metadata such as safety_identifier.

  • Skip streamed tool-call array indexes that leave a gap so a small response can't build a huge sparse array

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.