@ai-sdk/anthropic
4.0.106 · 17 Nov 2026Apache-2.024.5M / weekRepositoryHomepagenpmAtom feed
Your version
3.0.143 is the newest release of 3.x.
In short
1 fixed
Release note
Patch Changes
anthropic: Enable structured output support for claude-haiku-4-5
This fixes an issue where the
strict: trueproperty was not included in the request body when using tools with Claude Haiku 4.5, becausesupportsStructuredOutputwas incorrectly set tofalsefor this model.Claude Haiku 4.5 supports structured outputs, so the
strictproperty should be forwarded to the Anthropic API when specified on tools.
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.