github vercel/ai @ai-sdk/google@4.0.70

latest releases: @ai-sdk/workflow-harness@1.0.111, @ai-sdk/workflow@2.0.32, @ai-sdk/vue@4.0.101...
4 hours ago

Patch Changes

  • 2a32459: fix(google): preserve JSON Schema instead of converting to OpenAPI schema

  • d93e295: fix(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.

Don't miss a new ai release

NewReleases is sending notifications on new releases.