@ai-sdk/google
4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed
497 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
4.0.70
15 Sep 2026google: 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.
4.0.69
12 Sep 2026vertex: Download tool result file URLs
4.0.68
11 Sep 2026Reject unsupported batch request types
Support image generation requests in batches
Patch Changes
Reject unsupported batch request types
Support image generation requests in batches
4.0.67
9 Sep 2026google: Add batch cancellation and listing
Patch Changes
google: Add batch cancellation and listing
4.0.66
9 Sep 2026Only updates dependencies:@ai-sdk/provider 4.0.12@ai-sdk/provider-utils 5.0.38
4.0.65
8 Sep 2026Support per-request models in batch
Retry unclassified empty image results, preserve retry-attempt accounting, add provider-independent result retryability classification, and mark Google and Google Vertex prompt blocks as terminal.
Patch Changes
Support per-request models in batch
Retry unclassified empty image results, preserve retry-attempt accounting, add provider-independent result retryability classification, and mark Google and Google Vertex prompt blocks as terminal.
4.0.63
2 Sep 2026google: Support agentic video processing in the Interactions API
batch: Surface the uploaded input file on the batch start result (
providerMetadata.<provider>.inputFileId/inputFileExpiresAt) and accept aninputFileExpiresAfterprovider option on the OpenAI and xAI batch input file uploadgoogle: Add gemini-3.8-flash model
4.0.62
2 Sep 2026Only updates a dependency:@ai-sdk/provider-utils 5.0.36
4.0.61
1 Sep 2026provider: Extend the FilesV4 interface with optional
getFileMetadata,downloadFile(streaming), anddeleteFileoperations, plusabortSignal/headerscall options and a{ type: 'stream' }upload data variant; upload results now exposebyteSize,createdAt, andexpiresAt(also surfaced by the coreuploadFile()helper, which now forwardsabortSignal/headers); addpostMultipartStreamToApi(streaming multipart uploads with deterministic part ordering and failure-path stream teardown),deleteFromApi, andcreateBinaryStreamResponseHandlerto provider-utils
Patch Changes
provider: Extend the FilesV4 interface with optional
getFileMetadata,downloadFile(streaming), anddeleteFileoperations, plusabortSignal/headerscall options and a{ type: 'stream' }upload data variant; upload results now exposebyteSize,createdAt, andexpiresAt(also surfaced by the coreuploadFile()helper, which now forwardsabortSignal/headers); addpostMultipartStreamToApi(streaming multipart uploads with deterministic part ordering and failure-path stream teardown),deleteFromApi, andcreateBinaryStreamResponseHandlerto provider-utils
4.0.60
1 Sep 2026Add tool calling support to batch
4.0.59
31 Aug 2026google: Support video response formats in Gemini Interactions
4.0.58
30 Aug 2026Only updates dependencies:@ai-sdk/provider 4.0.9@ai-sdk/provider-utils 5.0.34
4.0.57
28 Aug 2026google: Recognize Google Files URLs when using a baseUrl
Patch Changes
google: Recognize Google Files URLs when using a baseUrl
4.0.56
27 Aug 2026Preserve complete Google Generative Language usage metadata in raw usage results.
Omit unsupported frequency and presence penalties from Gemini 2.5 requests and return warnings instead.
4.0.55
27 Aug 2026Surface prompt-level Google safety blocks without candidates as content-filter results with prompt feedback metadata.
4.0.54
26 Aug 2026Feat (provider/google, provider/google-vertex): Gemini 3.5 Transcribe support — unary transcription (
gemini-3.5-transcribe) via generateContent with language detection, speaker diarization, word timestamps, and custom vocabulary, plus streaming transcription (gemini-3.5-transcribe-live) over the Live API WebSocket withmode: 'VERBATIM' | 'SMART'transcription formatting
4.0.53
26 Aug 2026Only updates a dependency:@ai-sdk/provider-utils 5.0.32
4.0.51
25 Aug 2026google: Support the Gemini Batch API with experimental_startTextBatch
Patch Changes
google: Support the Gemini Batch API with experimental_startTextBatch
4.0.49 – 4.0.502 releases with no change for you1 dependency update, 1 maintenance@ai-sdk/provider-utils 5.0.29Show each
- 4.0.5022 Aug 2026@ai-sdk/provider-utils 5.0.29
- 4.0.4921 Aug 2026docs, tests or tooling
4.0.48
20 Aug 2026Inline local JSON Schema references in Google tool and structured-output schemas.
4.0.47
19 Aug 2026Handle empty string tool call IDs
Patch Changes
Handle empty string tool call IDs
4.0.46
19 Aug 2026google: Use low as the minimum reasoning level for full Gemini Flash 3.7 and later
4.0.45
18 Aug 2026google: Coerce minimal reasoning to low for Gemini 3.7 Flash
4.0.44
13 Aug 2026google: Add
gemini-3.7-flashmodel
4.0.43
12 Aug 2026Preserve forced tool calls when strict function tools are configured.
4.0.42
11 Aug 2026Only updates a dependency:@ai-sdk/provider-utils 5.0.27
4.0.41
11 Aug 2026google: Convert enum values to the Gemini schema format
Preserve Google API error details in
APICallError.data.
4.0.33 – 4.0.408 releases with no change for you7 dependency updates, 1 maintenance@ai-sdk/provider-utils 5.0.26@ai-sdk/provider 4.0.7Show each
- 4.0.4010 Aug 2026@ai-sdk/provider-utils 5.0.26
- 4.0.397 Aug 2026@ai-sdk/provider 4.0.7@ai-sdk/provider-utils 5.0.25
- 4.0.387 Aug 2026@ai-sdk/provider-utils 5.0.24
- 4.0.377 Aug 2026docs, tests or tooling
- 4.0.366 Aug 2026@ai-sdk/provider 4.0.6@ai-sdk/provider-utils 5.0.23
- 4.0.356 Aug 2026@ai-sdk/provider-utils 5.0.22
- 4.0.344 Aug 2026@ai-sdk/provider-utils 5.0.21
- 4.0.334 Aug 2026@ai-sdk/provider-utils 5.0.20
4.0.32
3 Aug 2026Async APIs for generateVideo (poll, webhook)
Adds an asynchronous start/status flow to the experimental video model
interface (VideoModelV4): models may now implementdoStart,doStatus,
andhandleWebhookOptioninstead of (or in addition to)doGenerate, andexperimental_generateVideoacceptspollandwebhookoptions to
orchestrate completion via polling or webhooks. Polling configuration can use
a custom delay implementation for durable workflow compatibility.
Patch Changes
Async APIs for generateVideo (poll, webhook)
Adds an asynchronous start/status flow to the experimental video model
interface (VideoModelV4): models may now implementdoStart,doStatus,
andhandleWebhookOptioninstead of (or in addition to)doGenerate, andexperimental_generateVideoacceptspollandwebhookoptions to
orchestrate completion via polling or webhooks. Polling configuration can use
a custom delay implementation for durable workflow compatibility.
4.0.28 – 4.0.314 releases that only update dependencies@ai-sdk/provider-utils 5.0.18Show each
- 4.0.3131 Jul 2026@ai-sdk/provider-utils 5.0.18
- 4.0.3031 Jul 2026@ai-sdk/provider-utils 5.0.17
- 4.0.2930 Jul 2026@ai-sdk/provider-utils 5.0.16
- 4.0.2829 Jul 2026@ai-sdk/provider-utils 5.0.15
4.0.27
28 Jul 2026Forward
topKthrough Google Interactions requests and warn when unsupported frequency or presence penalties are provided.Allow fetch to derive the content length for Google file upload request bodies.
4.0.26
28 Jul 2026Add experimental streaming speech translation models (
openai.translation('gpt-realtime-translate')over the OpenAI Realtime translations WebSocket andgoogle.translation('gemini-3.5-live-translate-preview')over the Gemini Live API).connectToWebSocketin@ai-sdk/provider-utilsnow passes close code and reason toonClose(additive, optional parameter).
Patch Changes
Add experimental streaming speech translation models (
openai.translation('gpt-realtime-translate')over the OpenAI Realtime translations WebSocket andgoogle.translation('gemini-3.5-live-translate-preview')over the Gemini Live API).connectToWebSocketin@ai-sdk/provider-utilsnow passes close code and reason toonClose(additive, optional parameter).
4.0.25
27 Jul 2026Only updates dependencies:@ai-sdk/provider 4.0.4@ai-sdk/provider-utils 5.0.13
4.0.24
24 Jul 2026google: Omit unsupported function call IDs
4.0.23
23 Jul 2026provider/google: Default unknown Gemini model IDs to the newest supported capabilities
4.0.22
22 Jul 2026provider/google: Preserve Gemini Live lifecycle events
Avoid missing thought-signature warnings and skip-validator injection for valid unsigned Gemini 3 parallel function calls in the same model response.
4.0.21
21 Jul 2026google: Add
gemini-3.6-flashandgemini-3.5-flash-litemodels
4.0.20
21 Jul 2026Only updates a dependency:@ai-sdk/provider-utils 5.0.12
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.