@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
Your version
1.6.6 is the newest release of 1.x.
In short
1 fixed
Release note
Patch Changes
anthropic: Surface model refusals as
ModelRefusalErrorA
refusalstop reason maps to thecontent_filterfinish reason in stream events, andwithStructuredOutputthrowsModelRefusalErroron a refusal, including when thinking is enabled.
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.