@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/anthropic From 4.0.96 to 4.0.97
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Add MiniMax
serviceTiersupport forstandardandpriorityadmission. Omit tiers belonging to another known provider with an unsupported-setting warning instead of forwarding incompatible values. Expose the appliedserviceTier, when returned, in Anthropic-compatible generation, stream and batch metadata without changing existing metadata construction types. - New
Add typed streaming heartbeat parts. Anthropic emits them only with
includePings: true(disabled by default), without requiring raw chunks. Core forwards pings through stream retries without storing them as generated content or sending them to UI message streams. Consumers with exhaustive stream-part switches must handle the newpingunion variant when upgrading, even when the opt-in is disabled. Typed pings do not flush partial words during stream smoothing. - New
Add a
supportsNativeStructuredOutputopt-in to the Vertex Anthropic provider soautocan use native structured output for Claude 4.5 and newer when enabled by Google Cloud policy. Keep tool emulation as the default and avoid adding the structured-output beta header for providers without strict tool support. - New
Support deleting files, retrieving metadata, and streaming downloads of generated files through the Anthropic Files API. Metadata reads and uploads expose consistent media type, size, creation time, expiration, and provider metadata when available. Downloads preserve Anthropic’s restriction to files generated by tools or skills.
- Fixed
Preserve the order of text and complete function calls in streamed Google responses, including standalone thought signatures on empty text or reasoning parts.
- New
1 internal line (docs, tests, tooling) left out.
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.