@langchain/openai 0.6.16-rc.0 → 0.6.17

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.
@@ -605,9 +605,10 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
605
605
  this.audio = fields?.audio;
606
606
  this.modalities = fields?.modalities;
607
607
  this.reasoning =
608
- fields?.reasoning ?? fields?.reasoningEffort
609
- ? { effort: fields.reasoningEffort }
610
- : undefined;
608
+ fields?.reasoning ??
609
+ (fields?.reasoningEffort
610
+ ? { effort: fields.reasoningEffort }
611
+ : undefined);
611
612
  this.maxTokens = fields?.maxCompletionTokens ?? fields?.maxTokens;
612
613
  this.disableStreaming = fields?.disableStreaming === true;
613
614
  this.streaming = fields?.streaming === true;
@@ -600,9 +600,10 @@ export class BaseChatOpenAI extends BaseChatModel {
600
600
  this.audio = fields?.audio;
601
601
  this.modalities = fields?.modalities;
602
602
  this.reasoning =
603
- fields?.reasoning ?? fields?.reasoningEffort
604
- ? { effort: fields.reasoningEffort }
605
- : undefined;
603
+ fields?.reasoning ??
604
+ (fields?.reasoningEffort
605
+ ? { effort: fields.reasoningEffort }
606
+ : undefined);
606
607
  this.maxTokens = fields?.maxCompletionTokens ?? fields?.maxTokens;
607
608
  this.disableStreaming = fields?.disableStreaming === true;
608
609
  this.streaming = fields?.streaming === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.6.16-rc.0",
3
+ "version": "0.6.17",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {