@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.
@@ -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 (this.streaming === false)
617
+ if (fields?.streaming === false)
618
618
  this.disableStreaming = true;
619
619
  if (this.disableStreaming === true)
620
620
  this.streaming = false;
@@ -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 (this.streaming === false)
612
+ if (fields?.streaming === false)
613
613
  this.disableStreaming = true;
614
614
  if (this.disableStreaming === true)
615
615
  this.streaming = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {