@langchain/openai 0.6.12 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat_models.cjs +1 -1
- package/dist/chat_models.js +1 -1
- package/package.json +1 -1
package/dist/chat_models.cjs
CHANGED
|
@@ -614,7 +614,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
614
614
|
this.promptCacheKey = fields?.promptCacheKey ?? this.promptCacheKey;
|
|
615
615
|
this.verbosity = fields?.verbosity ?? this.verbosity;
|
|
616
616
|
// disable streaming in BaseChatModel if explicitly disabled
|
|
617
|
-
if (
|
|
617
|
+
if (fields?.streaming === false)
|
|
618
618
|
this.disableStreaming = true;
|
|
619
619
|
if (this.disableStreaming === true)
|
|
620
620
|
this.streaming = false;
|
package/dist/chat_models.js
CHANGED
|
@@ -609,7 +609,7 @@ export class BaseChatOpenAI extends BaseChatModel {
|
|
|
609
609
|
this.promptCacheKey = fields?.promptCacheKey ?? this.promptCacheKey;
|
|
610
610
|
this.verbosity = fields?.verbosity ?? this.verbosity;
|
|
611
611
|
// disable streaming in BaseChatModel if explicitly disabled
|
|
612
|
-
if (
|
|
612
|
+
if (fields?.streaming === false)
|
|
613
613
|
this.disableStreaming = true;
|
|
614
614
|
if (this.disableStreaming === true)
|
|
615
615
|
this.streaming = false;
|