Packages

@ai-sdk/google

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

Your version

4.0.70

15 Sep 2026Where it was published

4.0.122 is the newest release of 4.x.

In short

2 fixed

Release note

The section about @ai-sdk/google of a note shared by several packages.

Patch Changes

  • google: Preserve JSON Schema instead of converting to OpenAPI schema

  • google: Keep a realtime functionResponse.response an object

    Gemini types that field as a google.protobuf.Struct, which accepts an object and
    nothing else. onToolCall returns unknown and addToolOutput takes unknown, so a
    string, number, array or null tool result reached the wire unwrapped, Gemini closed
    the socket with 1007, and the close code was dropped on the way back so the
    application saw a plain disconnect. A non-object result is now wrapped under the
    output key the field's own docstring prescribes; an object is passed through
    unchanged, as before.

    An output that is not valid JSON no longer becomes {}. That branch told the model
    the tool had returned an empty object, with nothing thrown and the socket still up, so
    the answer was wrong with nothing to notice. The text is kept instead.

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.