@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
4.0.106 is the newest release of 4.x.
In short
1 fixed
Release note
Patch Changes
anthropic: Forward
thinking: { type: 'disabled' }to the API instead of stripping itPreviously, setting
providerOptions.anthropic.thinking = { type: 'disabled' }(or top-levelreasoning: 'none') was accepted by the schema but silently dropped from the outgoing request. For models that default thinking on (e.g. Sonnet 5), this left thinking enabled and could consume a smallmax_tokensbudget entirely. Thedisabledvalue is now sent to the Anthropic Messages API.
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.