github langchain-ai/langchainjs @langchain/google-vertexai@2.1.14

latest releases: @langchain/google-vertexai-web@2.1.14, @langchain/mistralai@1.0.4, @langchain/google-webauth@2.1.14...
9 hours ago

Patch Changes

  • #9900 a9b5059 Thanks @hntrl! - Improved abort signal handling for chat models:

    • Added ModelAbortError class in @langchain/core/errors that contains partial output when a model invocation is aborted mid-stream
    • invoke() now throws ModelAbortError with accumulated partialOutput when aborted during streaming (when using streaming callback handlers)
    • stream() throws a regular AbortError when aborted (since chunks are already yielded to the caller)
    • All provider implementations now properly check and propagate abort signals in both _generate() and _streamResponseChunks() methods
    • Added standard tests for abort signal behavior
  • Updated dependencies []:

    • @langchain/google-gauth@2.1.14

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.