Packages

@ai-sdk/google-vertex

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

Your version

5.0.0

major25 Jun 2026Where it was published

5.0.144 is the newest release of 5.x.

In short

5 breaking14 new13 fixed6 internal

  • Breaking

    anthropic: Remove cacheCreationInputTokens from providerMetadata

  • Breaking

    Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers using require() must switch to ESM import syntax.

  • Breaking

    Start v7 pre-release

  • Breaking

    Make provider implementations code patterns more consistent, including renaming certain exported symbols

  • Breaking

    Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.

Release note

Major Changes

  • Breaking

    anthropic: Remove cacheCreationInputTokens from providerMetadata

  • Breaking

    Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers using require() must switch to ESM import syntax.

  • Breaking

    Start v7 pre-release

  • Breaking

    Make provider implementations code patterns more consistent, including renaming certain exported symbols

    For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.

Patch Changes

  • provider/anthropic: Add support for claude-opus-4-8

  • Add AI Gateway hint to provider READMEs

  • google, google-vertex: Added gemini-embedding-2, deep-research-max-preview-04-2026 and deep-research-preview-04-2026

  • google-vertex: Propagate project-id set in provider instance creation

  • vertex: Add grok models to vertex provider

  • provider/google-vertex: Add Google Cloud Speech-to-Text transcription model support

  • provider/google-vertex: Add Gemini text-to-speech (speech) model support

  • Trigger release for all packages after provenance setup

  • vertex: Use correct import for token generator

  • provider/google: Add gemini-embedding-2-preview and fix multimodal embedding support with embedMany

  • google-vertex: Support regional endpoints for vertex MaaS

  • vertex-anthropic: Support eu/us multi-region anthropic endpoints

  • Breaking

    Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.

  • Trigger initial canary release

  • google-vertex: Add the anthropic tool search tools

  • google-vertex: Support for eu/us multi region gemini endpoints

  • provider: Change file part data property to be tagged with a type and remove the image part type

  • provider/google: Add gemini-3.5-flash

  • Trigger initial beta release

  • provider/google-vertex: Avoid recreating Node GoogleAuth clients for repeated requests

    Create Google auth token generators per provider instance instead of using a
    module-level shared GoogleAuth cache. This avoids unnecessary GoogleAuth
    recreation when googleAuthOptions are omitted or when multiple provider
    instances use equivalent auth settings.

  • provider/anthropic: Add support for claude-fable-5 and the fallbacks API parameter

  • vertex: Throw warning when strict: true for vertexAnthropic

  • Feat (provider/google-vertex): add support for maas models

  • provider/google-vertex: Allow overriding Vertex Anthropic auth token generation

  • Route gemini-embedding-2 / gemini-embedding-2-preview to the :embedContent endpoint, which is the only one those models support (:predict returns 400 FAILED_PRECONDITION)

  • Feat (video): add first-class generateAudio call option

  • Add workflow serialization support to all provider models.

    @ai-sdk/provider-utils: New serializeModel() helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.

    All providers: headers is now optional in provider config types. This is non-breaking — existing code that passes headers continues to work. Custom provider implementations that construct model configs manually can now omit headers, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.

    All provider model classes now include WORKFLOW_SERIALIZE and WORKFLOW_DESERIALIZE static methods, enabling them to cross workflow step boundaries without serialization errors.

  • provider/anthropic: Add support for Opus 4.7 and relevant API enhancements

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.