@langchain/openai 0.6.10 → 0.6.11

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.
@@ -273,7 +273,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
273
273
  "response_format",
274
274
  "seed",
275
275
  "reasoning",
276
- "reasoning_effort",
276
+ "reasoningEffort",
277
277
  "service_tier",
278
278
  ];
279
279
  }
@@ -287,6 +287,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
287
287
  return {
288
288
  apiKey: "openai_api_key",
289
289
  modelName: "model",
290
+ reasoningEffort: "reasoning_effort",
290
291
  };
291
292
  }
292
293
  get lc_serializable_keys() {
@@ -325,7 +326,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
325
326
  "disableStreaming",
326
327
  "zdrEnabled",
327
328
  "reasoning",
328
- "reasoning_effort",
329
+ "reasoningEffort",
329
330
  "promptCacheKey",
330
331
  "verbosity",
331
332
  ];
@@ -603,8 +604,8 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
603
604
  this.audio = fields?.audio;
604
605
  this.modalities = fields?.modalities;
605
606
  this.reasoning =
606
- fields?.reasoning ?? fields?.reasoning_effort
607
- ? { effort: fields.reasoning_effort }
607
+ fields?.reasoning ?? fields?.reasoningEffort
608
+ ? { effort: fields.reasoningEffort }
608
609
  : undefined;
609
610
  this.maxTokens = fields?.maxCompletionTokens ?? fields?.maxTokens;
610
611
  this.disableStreaming = fields?.disableStreaming ?? this.disableStreaming;
@@ -268,7 +268,7 @@ export class BaseChatOpenAI extends BaseChatModel {
268
268
  "response_format",
269
269
  "seed",
270
270
  "reasoning",
271
- "reasoning_effort",
271
+ "reasoningEffort",
272
272
  "service_tier",
273
273
  ];
274
274
  }
@@ -282,6 +282,7 @@ export class BaseChatOpenAI extends BaseChatModel {
282
282
  return {
283
283
  apiKey: "openai_api_key",
284
284
  modelName: "model",
285
+ reasoningEffort: "reasoning_effort",
285
286
  };
286
287
  }
287
288
  get lc_serializable_keys() {
@@ -320,7 +321,7 @@ export class BaseChatOpenAI extends BaseChatModel {
320
321
  "disableStreaming",
321
322
  "zdrEnabled",
322
323
  "reasoning",
323
- "reasoning_effort",
324
+ "reasoningEffort",
324
325
  "promptCacheKey",
325
326
  "verbosity",
326
327
  ];
@@ -598,8 +599,8 @@ export class BaseChatOpenAI extends BaseChatModel {
598
599
  this.audio = fields?.audio;
599
600
  this.modalities = fields?.modalities;
600
601
  this.reasoning =
601
- fields?.reasoning ?? fields?.reasoning_effort
602
- ? { effort: fields.reasoning_effort }
602
+ fields?.reasoning ?? fields?.reasoningEffort
603
+ ? { effort: fields.reasoningEffort }
603
604
  : undefined;
604
605
  this.maxTokens = fields?.maxCompletionTokens ?? fields?.maxTokens;
605
606
  this.disableStreaming = fields?.disableStreaming ?? this.disableStreaming;
package/dist/types.d.ts CHANGED
@@ -155,7 +155,7 @@ export interface OpenAIChatInput extends OpenAIBaseInput {
155
155
  *
156
156
  * @deprecated Use `reasoning` instead.
157
157
  */
158
- reasoning_effort?: OpenAIClient.ReasoningEffort;
158
+ reasoningEffort?: OpenAIClient.ReasoningEffort;
159
159
  /**
160
160
  * Should be set to `true` in tenancies with Zero Data Retention
161
161
  * @see https://platform.openai.com/docs/guides/your-data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.6.10",
3
+ "version": "0.6.11",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {