@langchain/openai 0.5.17 → 0.6.0
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 +2 -1
- package/dist/chat_models.js +2 -1
- package/package.json +3 -3
package/dist/chat_models.cjs
CHANGED
|
@@ -288,6 +288,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
288
288
|
get lc_aliases() {
|
|
289
289
|
return {
|
|
290
290
|
apiKey: "openai_api_key",
|
|
291
|
+
model: "model_name",
|
|
291
292
|
};
|
|
292
293
|
}
|
|
293
294
|
get lc_serializable_keys() {
|
|
@@ -554,7 +555,7 @@ class BaseChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
554
555
|
this.organization =
|
|
555
556
|
fields?.configuration?.organization ??
|
|
556
557
|
(0, env_1.getEnvironmentVariable)("OPENAI_ORGANIZATION");
|
|
557
|
-
this.model = fields?.model ?? this.model;
|
|
558
|
+
this.model = fields?.model ?? fields?.modelName ?? this.model;
|
|
558
559
|
this.modelKwargs = fields?.modelKwargs ?? {};
|
|
559
560
|
this.timeout = fields?.timeout;
|
|
560
561
|
this.temperature = fields?.temperature ?? this.temperature;
|
package/dist/chat_models.js
CHANGED
|
@@ -283,6 +283,7 @@ class BaseChatOpenAI extends BaseChatModel {
|
|
|
283
283
|
get lc_aliases() {
|
|
284
284
|
return {
|
|
285
285
|
apiKey: "openai_api_key",
|
|
286
|
+
model: "model_name",
|
|
286
287
|
};
|
|
287
288
|
}
|
|
288
289
|
get lc_serializable_keys() {
|
|
@@ -549,7 +550,7 @@ class BaseChatOpenAI extends BaseChatModel {
|
|
|
549
550
|
this.organization =
|
|
550
551
|
fields?.configuration?.organization ??
|
|
551
552
|
getEnvironmentVariable("OPENAI_ORGANIZATION");
|
|
552
|
-
this.model = fields?.model ?? this.model;
|
|
553
|
+
this.model = fields?.model ?? fields?.modelName ?? this.model;
|
|
553
554
|
this.modelKwargs = fields?.modelKwargs ?? {};
|
|
554
555
|
this.timeout = fields?.timeout;
|
|
555
556
|
this.temperature = fields?.temperature ?? this.temperature;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "OpenAI integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@azure/identity": "^4.2.1",
|
|
47
47
|
"@jest/globals": "^29.5.0",
|
|
48
|
-
"@langchain/core": "
|
|
48
|
+
"@langchain/core": "0.3.62",
|
|
49
49
|
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
50
50
|
"@langchain/standard-tests": "0.0.0",
|
|
51
51
|
"@swc/core": "^1.3.90",
|
|
@@ -102,4 +102,4 @@
|
|
|
102
102
|
"index.d.ts",
|
|
103
103
|
"index.d.cts"
|
|
104
104
|
]
|
|
105
|
-
}
|
|
105
|
+
}
|