From d680961f33fe4338cb82160b483527cd46429043 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Thu, 23 Jan 2025 17:31:32 +0100 Subject: [PATCH] fix(chat-models): honot disableStreaming even for `generateUncached` --- langchain-core/src/language_models/chat_models.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/langchain-core/src/language_models/chat_models.ts b/langchain-core/src/language_models/chat_models.ts index 4e4fdb548c52..206e8b01dc6a 100644 --- a/langchain-core/src/language_models/chat_models.ts +++ b/langchain-core/src/language_models/chat_models.ts @@ -399,6 +399,7 @@ export abstract class BaseChatModel< ); if ( hasStreamingHandler && + !this.disableStreaming && baseMessages.length === 1 && this._streamResponseChunks !== BaseChatModel.prototype._streamResponseChunks