@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: Preserve gateway cost on the native stream path
convertAnthropicStreamnow surfaces an Anthropic-compatible gateway's numericusage.costatresponse_metadata.usage.cost, matching the chunk path. Token accounting inusage_metadatais unchanged.
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.