@langchain/openai 0.5.1 → 0.5.2

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.
@@ -89,7 +89,7 @@ class DallEAPIWrapper extends tools_1.Tool {
89
89
  apiKey: openAIApiKey,
90
90
  organization,
91
91
  dangerouslyAllowBrowser: true,
92
- baseUrl: fields?.baseUrl,
92
+ baseURL: fields?.baseUrl,
93
93
  };
94
94
  this.client = new openai_1.OpenAI(clientConfig);
95
95
  this.model = fields?.model ?? fields?.modelName ?? this.model;
@@ -86,7 +86,7 @@ export class DallEAPIWrapper extends Tool {
86
86
  apiKey: openAIApiKey,
87
87
  organization,
88
88
  dangerouslyAllowBrowser: true,
89
- baseUrl: fields?.baseUrl,
89
+ baseURL: fields?.baseUrl,
90
90
  };
91
91
  this.client = new OpenAIClient(clientConfig);
92
92
  this.model = fields?.model ?? fields?.modelName ?? this.model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {