github langchain-ai/langchainjs @langchain/anthropic@1.5.5

4 hours ago

Patch Changes

  • #11359 d36ec6a Thanks @talarari! - fix(anthropic): preserve gateway cost on the native stream path

    convertAnthropicStream now surfaces an Anthropic-compatible gateway's numeric usage.cost at response_metadata.usage.cost, matching the chunk path. Token accounting in usage_metadata is unchanged.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.