unstale

npm / @ai-sdk/google-vertex

@ai-sdk/google-vertex

What changed in @ai-sdk/google-vertex 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

13 breaking7 security2 deprecations56 new APIs and options2 performance22 behavior and defaults27 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@ai-sdk/google-vertex 569 changes

Breaking changes 6

  • Forced tool use is unsupported: required and named tool choices fall back to auto, while structuredOutputMode: 'jsonTool' falls back to native structured outputs, each with a warning.

    5.0.97release notes

  • Together AI Gemini image inputs are marked unsupported with the current single-image request mapping.

    5.0.96release notes

  • Support for Imagen models and their integration was dropped following the API shutdown.

    5.0.60release notes

  • All packages are ESM-only; consumers using require() must switch to ESM import syntax.

    5.0.0release notes

  • File part data is now tagged with a type, and the image part type has been removed.

    5.0.0release notes

  • The minimum supported Node.js version is 22; supported versions are 22, 24, and 26.

    5.0.0release notes

Security 6

  • Exposes MCP server support for Google Vertex Interactions models; MCP server header values are redacted from telemetry.

    5.0.142release notes

  • Add a fetch option so downloads can use a custom transport, including guarded-fetch for opt-in DNS validation on Node.js.

    5.0.139release notes

  • Keep tool-result downloads separate from provider authentication wrappers so file hosts do not receive Vertex Express Mode API keys.

    5.0.139release notes

  • Off-origin image downloads now use the validated download transport, preserving Node.js DNS validation and manual redirect handling in built-in authentication wrappers. Explicit custom fetch implementations and the browser redirect fallback remain supported.

    4.0.230, 5.0.136release notesrelease notes

  • The maas provider sends Google Cloud credentials only to its own API, not to image URLs from a response or their redirects.

    4.0.228, 5.0.134release notesrelease notes

  • When toolChoice is none, Google provider-defined tools are omitted so disabled tools cannot retrieve data or execute server-side; function declarations needed by conversation history are preserved while function calling is disabled.

    3.0.188, 4.0.227, 5.0.134release notesrelease notesrelease notes

Deprecations 1

  • A warning is now thrown when strict is true for vertexAnthropic.

    5.0.0release notes

New APIs and options 27

  • Adds support for the gemini-4-carbon model with the same capabilities as gemini-4-argon.

    3.0.191, 4.0.231, 5.0.137release notesrelease notesrelease notes

  • Adds an opt-in allowing auto to use native structured output for Claude 4.5 and newer when enabled by Google Cloud policy; tool emulation remains the default.

    5.0.132release notes

  • Adds a provider option and provider metadata to resume responses that used up their maxOutputTokens budget.

    4.0.213, 5.0.111release notesrelease notes

  • Adds gemini-4-argon as a model id.

    3.0.182, 4.0.213, 5.0.111release notesrelease notesrelease notes

  • Exposes the first request's prompt token count in provider metadata.

    3.0.182, 4.0.213, 5.0.111release notesrelease notesrelease notes

  • Adds Claude Haiku 5.5 as a supported model, with a 128k maximum output token limit, adaptive thinking, and five effort levels.

    5.0.105release notes

  • Adds the gemini-nano-banana-2.1 model ID for use with Google models.

    5.0.103release notes

  • Adds experimental streaming lifecycle callbacks for speech generation and transcription telemetry.

    5.0.100release notes

  • Adds the Claude Sonnet 5.5 model ID to @ai-sdk/google-vertex.

    3.0.179, 4.0.208, 5.0.97release notesrelease notesrelease notes

  • Claude Sonnet 5.5 adds the between_tools thinking type. Disabled thinking and reasoning: 'none' map to it, budget-based thinking converts to adaptive thinking, and xhigh and max effort are lowered to high with a warning.

    5.0.97release notes

  • Adds Claude Fable 5.1 model IDs to the Vertex provider.

    5.0.84release notes

  • Adds the gemini-3.8-flash model for use with @ai-sdk/google-vertex.

    3.0.173, 5.0.75release notesrelease notes

  • Adds unary transcription via generateContent, with language detection, speaker diarization, word timestamps, and custom vocabulary.

    5.0.66release notes

  • Adds streaming transcription over the Live API WebSocket, with VERBATIM or SMART transcription formatting.

    5.0.66release notes

  • Added support for Anthropic tool search tools on Google Vertex.

    5.0.0release notes

  • Added this model to the Google Vertex provider.

    5.0.0release notes

  • Added support for gemini-embedding-2 and routed it to the :embedContent endpoint, which the model supports.

    5.0.0release notes

  • Added support for gemini-embedding-2-preview and routed it to the :embedContent endpoint, which the model supports.

    5.0.0release notes

  • Added Gemini text-to-speech model support.

    5.0.0release notes

  • Added Google Cloud Speech-to-Text transcription model support.

    5.0.0release notes

  • Added Grok models to the Vertex provider.

    5.0.0release notes

  • Added support for MaaS models in the Google Vertex provider.

    5.0.0release notes

  • Vertex Gemini models now support EU and US multi-region endpoints.

    5.0.0release notes

  • Vertex MaaS models now support regional endpoints.

    5.0.0release notes

  • Added the ability to override Vertex Anthropic auth token generation.

    5.0.0release notes

  • Provider model classes now expose this static method to support deserialization across workflow step boundaries.

    5.0.0release notes

  • Provider model classes now expose this static method to support serialization across workflow step boundaries.

    5.0.0release notes

Performance 2

  • Construction of provider validation schemas is deferred until first use to reduce package import time.

    3.0.184, 4.0.220, 5.0.119release notesrelease notesrelease notes

  • Google auth token generators are created per provider instance to avoid recreating Node GoogleAuth clients across repeated requests.

    5.0.0release notes

Behavior and default changes 12

  • Suggestions are derived from provider model catalog declarations, so catalog updates automatically update autocomplete while preserving endpoint-specific lists and support for custom model IDs.

    5.0.141release notes

  • The function returned by createDownload can be used as experimental_download with generateText and streamText, and the hook now handles generated file URLs.

    5.0.139release notes

  • These settings now support promises and synchronous or asynchronous callbacks, resolving credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.

    5.0.128release notes

  • @ai-sdk/google-vertex now supports Google Auth Library 11.

    5.0.125release notes

  • Requests that reach the per-request cap (CONTINUATION) are continued automatically, with usage summed across requests.

    3.0.182, 5.0.111release notesrelease notes

  • With the Interactions API, polls background: true model calls until they finish.

    5.0.111release notes

  • Top-level embedding dimensions are mapped to provider settings, allowing providers to receive the requested dimensions.

    5.0.109release notes

  • Thinking can be disabled up to high effort; xhigh and max are lowered to high with a warning when thinking is disabled. Token budgets are converted to adaptive thinking with a warning.

    5.0.105release notes

  • Adds telemetry to speech generation and transcription, with provider usage propagation.

    5.0.100release notes

  • Capability declarations now use confirmed model IDs, leaving unrecognized model names unknown; asynchronous lookups and middleware overrides can also resolve to unknown.

    5.0.96release notes

  • Capability declarations now include single-image editing support for Together AI FLUX.2 Pro and Flex.

    5.0.96release notes

  • The headers field is now optional in provider config types, allowing manually constructed model configs to omit it.

    5.0.0release notes

Fixes and other changes 15

  • Adds the model ID to the Vertex catalog, including it in model suggestions and generated capability documentation.

    5.0.141release notes

  • Custom download requests receive the call's abort signal, preserving cancellation and timeouts for prompt assets and generated files.

    5.0.139release notes

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

    4.0.228, 5.0.134release notesrelease notes

  • Fixes surfacing errors that occur during streaming.

    5.0.115release notes

  • Fixes hostname-part validation by using isValidHostnamePart.

    5.0.100release notes

  • Uses a standards-compliant User-Agent header.

    5.0.98release notes

  • Capability declarations now advertise file-input support for QuiverAI Arrow 2 and Arrow 2 Telos.

    5.0.96release notes

  • Supported Vertex tool result URLs are now forwarded as function response file data.

    5.0.95release notes

  • Corrects the advertised supported per-call limit for Gemini images.

    5.0.87release notes

  • Fixes downloading tool result file URLs.

    5.0.81release notes

  • Unclassified empty image results are retried, so these results no longer necessarily end an attempt without retrying.

    5.0.77release notes

  • Google Vertex prompt blocks are marked as terminal.

    5.0.77release notes

  • The default output token setting for Llama 4 was fixed.

    5.0.76release notes

  • Vertex text embedding models now advertise a batch limit of 250.

    5.0.70release notes

  • Project IDs set when creating a provider instance are now propagated.

    5.0.0release notes

@ai-sdk/google-vertex 441 changes

Breaking changes 4

  • Choose another transport for tool result downloads; the provider fetch option is no longer used for them, and a custom transport must perform equivalent connect-time DNS validation.

    4.0.234release notes

  • Limits Google Vertex tool result file downloads to 7 MiB by default, down from 2 GiB; raise the limit for larger files.

    4.0.234release notes

  • Google Vertex content-filtered results are treated as terminal rather than retryable.

    4.0.198release notes

  • Use model.embeddingModel('my-model-id') to create an embedding model; textEmbeddingModel was replaced and its aliases are deprecated.

    4.0.0release notes

Security 1

  • Invalid Cloud Speech transcription regions and default locations are rejected before credential resolution or requests, preventing URL delimiters from redirecting bearer tokens and audio to another host.

    4.0.232release notes

Deprecations 1

  • textEmbeddingModel and textEmbedding are deprecated aliases; use embeddingModel instead.

    4.0.0release notes

New APIs and options 22

  • Adds the claude-haiku-5-5 model ID to @ai-sdk/google-vertex; the model is recognized with a 128k maximum output token limit and all five effort levels.

    3.0.181, 4.0.211release notesrelease notes

  • Adds the between_tools thinking type, the lowest thinking setting on claude-sonnet-5-5.

    3.0.179, 4.0.208release notesrelease notes

  • Adds the gemini-3.8-flash model to the Google provider.

    4.0.197release notes

  • Adds unary transcription via generateContent, with language detection, speaker diarization, word timestamps, custom vocabulary, and VERBATIM or SMART formatting.

    4.0.191release notes

  • Adds claude-opus-4-5@20251101 to Google Vertex Anthropic models.

    4.0.0release notes

  • Adds claude sonnet 4.5 to the Google Vertex Anthropic provider.

    4.0.0release notes

  • Adds EmbeddingModelV3 support.

    4.0.0release notes

  • Adds the enterpriseWebSearch tool.

    4.0.0release notes

  • Adds express mode support.

    4.0.0release notes

  • Adds extended token usage support.

    4.0.0release notes

  • Adds gemini-3-flash support.

    4.0.0release notes

  • Adds the gemini-3-pro-image-preview model ID.

    4.0.0release notes

  • Adds the gemini-3-pro-preview model ID.

    4.0.0release notes

  • Adds the Google File search tool.

    4.0.0release notes

  • Adds Google Maps grounding tool support for location-aware Gemini responses.

    4.0.0release notes

  • Adds image editing support.

    4.0.0release notes

  • Adds ImageModelV3 support.

    4.0.0release notes

  • Adds support for the imageSize provider option.

    4.0.0release notes

  • Adds LanguageModelV3 support.

    4.0.0release notes

  • Adds a Google Vertex RAG Engine grounding provider tool.

    4.0.0release notes

  • Google Vertex Anthropic can combine tool calling with structured outputs, enabling tools alongside structured JSON output schemas.

    4.0.0release notes

  • Adds tool execution approval support.

    4.0.0release notes

Behavior and default changes 7

  • Automatically continues requests that reach the per-request CONTINUATION cap, sums usage across requests, and exposes the first request's prompt token count.

    4.0.213release notes

  • With the Interactions API, polls background model calls until they finish.

    4.0.213release notes

  • For claude-haiku-5-5, an enabled thinking budget is converted to adaptive thinking with a warning because the model does not support thinking token budgets.

    4.0.211release notes

  • For claude-sonnet-5-5, budget-based thinking is converted to adaptive thinking.

    4.0.208release notes

  • For claude-sonnet-5-5, structuredOutputMode: 'jsonTool' falls back to native structured outputs with a warning.

    3.0.179, 4.0.208release notesrelease notes

  • For claude-sonnet-5-5, disabled thinking is replaced with between_tools thinking, with a warning.

    4.0.208release notes

  • For claude-sonnet-5-5, required and named tool choices fall back to auto with a warning.

    3.0.179, 4.0.208release notesrelease notes

Fixes and other changes 6

  • xhigh and max effort are lowered to high with a warning because the API rejects them with between_tools.

    3.0.179, 4.0.208release notesrelease notes

  • Forwards supported GCS tool result URLs as function response file data on Vertex Gemini 3 and later, limited to image, PDF, and text MIME types; HTTP(S) downloads remain supported on all Gemini generations.

    4.0.206release notes

  • Unclassified empty image results are retried, with retry-attempt accounting preserved.

    4.0.198release notes

  • Fixes adding Google Search along with URL context in Vertex AI.

    4.0.0release notes

  • Allows vertex as a key for providerOptions.

    4.0.0release notes

  • Adds ProviderV3 support and specificationVersion to ProviderV3.

    4.0.0release notes

@ai-sdk/google-vertex 319 changes

Breaking changes 3

  • For claude-sonnet-5-5, disabled thinking is replaced with between_tools thinking, with a warning.

    3.0.179release notes

  • Image model settings are no longer configured on the model; maxImagesPerCall is passed directly to generateImage(), while other image settings go in providerOptions[provider].

    3.0.0release notes

  • The Vertex embedding model now uses providerOptions for its options.

    3.0.0release notes

New APIs and options 7

  • Adds the claude-fable-5-2 model ID with the same capabilities as claude-fable-5-1, including 128k max output tokens and native structured outputs by default.

    3.0.189release notes

  • Adds the continuationToken provider option for resuming responses that used up their maxOutputTokens budget.

    3.0.182release notes

  • A provider-independent classification of result retryability is added and preserved through the AI Gateway.

    3.0.174release notes

  • Added support for the imagen-3.0-generate-002 model.

    3.0.0release notes

  • Raw chunk support was added.

    3.0.0release notes

  • Gemini models via the Vertex AI Provider now support reasoning token output.

    3.0.0release notes

  • Provider option schemas were added for Vertex imagegen.

    3.0.0release notes

Behavior and default changes 3

  • For claude-sonnet-5-5, budget-based thinking is converted to adaptive thinking.

    3.0.179release notes

  • Unclassified empty image results are retried, while Google Vertex RAI-filtered results are treated as terminal.

    3.0.174release notes

  • Image model responses now set providerMetaData.

    3.0.0release notes

Fixes and other changes 6

  • Converts enabled thinking with a token budget to adaptive thinking and emits a warning because the model does not support thinking token budgets.

    3.0.181release notes

  • Recognizes the model as having a 128k max output token limit and all five effort levels; when thinking is disabled, xhigh and max effort are lowered to high with a warning.

    3.0.181release notes

  • Diagnostics from completed attempts are preserved.

    3.0.174release notes

  • Google Vertex RAI-filtered results are marked as terminal.

    3.0.174release notes

  • The global region for the Vertex provider was fixed.

    3.0.0release notes

  • Fixed Anthropic support for image URLs in messages.

    3.0.0release notes