Skip to content

@langchain/google@0.2.14

Choose a tag to compare

@github-actions github-actions released this 10 Nov 18:39
· 16 commits to main since this release
a5f7f6a

Patch Changes

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

    Blocked prompts throw PromptRefusedError, which matches ModelRefusalError.isInstance, including when streaming. A streamed safety stop keeps the text already streamed and ends with a refusal block, and refusal blocks are dropped when history is sent back.