@ai-sdk/amazon-bedrock
5.0.145 · 17 Nov 2026Apache-2.06.9M / weekRepositoryHomepagenpmAtom feed
5.0.145 is the newest release of 5.x.
In short
5 breaking7 new13 fixed3 internal
- Breaking
Remove CommonJS exports from all packages. All packages are now ESM-only (
"type": "module"). Consumers usingrequire()must switch to ESMimportsyntax. - Breaking
provider: Add new top-level reasoning parameter to spec and support it in
generateTextandstreamText - 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
The section about @ai-sdk/amazon-bedrock of a note shared by several packages.
Major Changes
- Breaking
Remove CommonJS exports from all packages. All packages are now ESM-only (
"type": "module"). Consumers usingrequire()must switch to ESMimportsyntax. - Breaking
provider: Add new top-level reasoning parameter to spec and support it in
generateTextandstreamText - 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
Add AI Gateway hint to provider READMEs
provider/amazon-bedrock: Mark
inputoptional on tool-use schema so streamingcontentBlockStartevents parse under Zod >= 4.4.0Fix (provider/amazon-bedrock): correct mantle subpath exports
amazon-bedrock: Do not use env var AWS_SESSION_TOKEN when keys are explicitly defined
provider/amazon-bedrock: Add tool search beta for Anthropic
amazon-bedrock: Preserve empty text blocks when reasoning content is present
amazon-bedrock: Support document files in tool results
bedrock: Add support for service tier for model inference
Trigger release for all packages after provenance setup
provider/amazon-bedrock: Detect Cohere embedding models behind cross-region inference profile ids
provider/amazon-bedrock: Transform bedrock/anthropic error responses to anthropic format
More precise default message for tool execution denial
- Breaking
Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
Trigger initial canary release
provider: Change file part data property to be tagged with a type and remove the image part type
Fix (provider/amazon-bedrock): preserve cache points on message content parts
provider/amazon-bedrock: Extract Cohere embedding token usage from response header
provider: Align tool result output content file part types with top-level message file part types
provider/anthropic: Add support for
claude-fable-5and thefallbacksAPI parameterAdd 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.