@ai-sdk/google
4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed
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.responsean objectGemini types that field as a
google.protobuf.Struct, which accepts an object and
nothing else.onToolCallreturnsunknownandaddToolOutputtakesunknown, so a
string, number, array ornulltool result reached the wire unwrapped, Gemini closed
the socket with1007, 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 theoutputkey the field's own docstring prescribes; an object is passed through
unchanged, as before.An
outputthat 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.