Packages

@ai-sdk/google-vertex

5.0.144 · 20 Nov 2026Apache-2.06.4M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.0

major22 Dec 2025Where it was published

4.0.234 is the newest release of 4.x.

In short

1 breaking19 new9 fixed8 internal

  • Breaking

    Ai SDK 6 beta

Release note

Major Changes

  • Breaking

    Ai SDK 6 beta

Patch Changes

  • provider: Add specificationVersion to ProviderV3

  • Remove duplicate gemini-1.0-pro-001 model ID

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

  • Add Google Vertex RAG Engine grounding provider tool

  • EmbeddingModelV3

  • Fix adding google search along with url context in vertex ai

  • provider/google-vertex: Add support for the imageSize provider option

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

  • Tool execution approval

  • vertex/anthropic: Passing beta header only for structured outputs

  • Provider-V3

  • Extended token usage

  • Add provider version to user-agent header

  • provider/vertext: Add express mode support

  • LanguageModelV3

  • Add claude sonnet 4.5 in google vertex anthropic provider

  • provider/google: Add enterpriseWebSearch tool

  • Image editing

  • vertex: Allow 'vertex' as a key for providerOptions

  • Add Google File search tool

  • Add gemini-3-pro-preview and gemini-3-pro-image-preview model IDs

  • provider/amazon-bedrock,provider/google-vertex-anthropic: Add support for tool calling with structured output

    Added support for combining tool calling with structured outputs in both Amazon Bedrock and Google Vertex Anthropic providers. This allows developers to use tools (like weather lookups, web search, etc.) alongside structured JSON output schemas, enabling multi-step agentic workflows with structured final outputs.

    Amazon Bedrock Changes:

    • Removed incorrect warning that prevented using tools with JSON response format

    • Updated tool choice to use { type: 'required' } instead of specific tool selection when using structured outputs

    • Added isJsonResponseFromTool parameter to finish reason mapping

    • JSON tool responses are correctly converted to text content and finish reason is mapped from tool_use to stop

    • Added comprehensive test coverage for combining tools with structured outputs

    • Added example files demonstrating the feature

    Google Vertex Anthropic Changes:

    • Inherits support from underlying Anthropic provider implementation

    • Added test coverage to verify the feature works correctly

    • Added example files demonstrating the feature

    This brings Anthropic provider's structured output capabilities to the Amazon Bedrock and Google Vertex Anthropic providers.

  • ImageModelV3

  • google: gemini-3-flash

  • Update google-auth-library to ^10.5.0

  • Moved dependency @ai-sdk/test-server to devDependencies

  • google,google-vertex: Update known model IDs

  • Chore (provider/google): Add preview modelIds for gemini 2.5 flash and lite

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.