@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
3.0.143 is the newest release of 3.x.
In short
1 fixed
Release note
Patch Changes
anthropic: Implement temperature/topP mutual exclusivity
Resolves the Anthropic API breaking change where sampling parameters must use only
temperatureORtop_p, not both. When both parameters are provided:Temperature takes priority and topP is ignored
A warning is added to inform users: "topP is not supported when temperature is set. topP is ignored."
The validation only runs when thinking mode is not enabled (thinking mode has its own parameter validation)
See Anthropic migration guide: platform.claude.com/docs/en/about-claude/models…
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.