@ai-sdk/google-vertex
5.0.144 · 20 Nov 2026Apache-2.06.4M / weekRepositoryHomepagenpmAtom feed
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 usingrequire()must switch to ESMimportsyntax. - 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 usingrequire()must switch to ESMimportsyntax. - 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-8Add AI Gateway hint to provider READMEs
google, google-vertex: Added
gemini-embedding-2,deep-research-max-preview-04-2026anddeep-research-preview-04-2026google-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-previewand fix multimodal embedding support withembedManygoogle-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-flashTrigger 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 sharedGoogleAuthcache. This avoids unnecessaryGoogleAuth
recreation whengoogleAuthOptionsare omitted or when multiple provider
instances use equivalent auth settings.provider/anthropic: Add support for
claude-fable-5and thefallbacksAPI parametervertex: 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-previewto the:embedContentendpoint, which is the only one those models support (:predictreturns 400 FAILED_PRECONDITION)Feat (video): add first-class
generateAudiocall optionAdd workflow serialization support to all provider models.
@ai-sdk/provider-utils: NewserializeModel()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:
headersis now optional in provider config types. This is non-breaking — existing code that passesheaderscontinues to work. Custom provider implementations that construct model configs manually can now omitheaders, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.All provider model classes now include
WORKFLOW_SERIALIZEandWORKFLOW_DESERIALIZEstatic 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.