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

latest releases: @langchain/neo4j@0.1.32, @langchain/xai@1.5.5, @langchain/together-ai@0.2.24...
46 minutes ago

Patch Changes

  • #12122 e92e44d Thanks @thushanth-bengre-langchain! - fix(anthropic): surface model refusals as ModelRefusalError

    A refusal stop reason maps to the content_filter finish reason in stream events, and withStructuredOutput throws ModelRefusalError on a refusal, including when thinking is enabled.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.