@langchain/openai 0.3.16 → 0.3.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.
- package/dist/chat_models.cjs +3 -0
- package/dist/chat_models.js +3 -0
- package/package.json +2 -2
package/dist/chat_models.cjs
CHANGED
|
@@ -1115,6 +1115,9 @@ class ChatOpenAI extends chat_models_1.BaseChatModel {
|
|
|
1115
1115
|
// Streaming usage is not supported by Azure deployments, so default to false
|
|
1116
1116
|
this.streamUsage = false;
|
|
1117
1117
|
}
|
|
1118
|
+
if (this.model === "o1") {
|
|
1119
|
+
this.disableStreaming = true;
|
|
1120
|
+
}
|
|
1118
1121
|
this.streaming = fields?.streaming ?? false;
|
|
1119
1122
|
this.streamUsage = fields?.streamUsage ?? this.streamUsage;
|
|
1120
1123
|
this.clientConfig = {
|
package/dist/chat_models.js
CHANGED
|
@@ -1110,6 +1110,9 @@ export class ChatOpenAI extends BaseChatModel {
|
|
|
1110
1110
|
// Streaming usage is not supported by Azure deployments, so default to false
|
|
1111
1111
|
this.streamUsage = false;
|
|
1112
1112
|
}
|
|
1113
|
+
if (this.model === "o1") {
|
|
1114
|
+
this.disableStreaming = true;
|
|
1115
|
+
}
|
|
1113
1116
|
this.streaming = fields?.streaming ?? false;
|
|
1114
1117
|
this.streamUsage = fields?.streamUsage ?? this.streamUsage;
|
|
1115
1118
|
this.clientConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/openai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "OpenAI integrations for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"zod-to-json-schema": "^3.22.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@langchain/core": ">=0.
|
|
44
|
+
"@langchain/core": ">=0.3.29 <0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@azure/identity": "^4.2.1",
|