@langchain/xai 1.3.18 → 1.3.19
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @langchain/xai
|
|
2
2
|
|
|
3
|
+
## 1.3.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3999fab`](https://github.com/langchain-ai/langchainjs/commit/3999fab55870c6eea22d6d90c08aa472f9b2fac3), [`fce9ab4`](https://github.com/langchain-ai/langchainjs/commit/fce9ab418901323618fdfaaa9fc350fa1c0d50e0)]:
|
|
8
|
+
- @langchain/openai@1.4.7
|
|
9
|
+
|
|
3
10
|
## 1.3.18
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -431,7 +431,7 @@ var ChatXAI = class extends _langchain_openai.ChatOpenAICompletions {
|
|
|
431
431
|
apiKey,
|
|
432
432
|
configuration: { baseURL: fields?.baseURL ?? "https://api.x.ai/v1" }
|
|
433
433
|
});
|
|
434
|
-
this._addVersion("@langchain/xai", "1.3.
|
|
434
|
+
this._addVersion("@langchain/xai", "1.3.19");
|
|
435
435
|
this.searchParameters = fields?.searchParameters;
|
|
436
436
|
}
|
|
437
437
|
toJSON() {
|
|
@@ -431,7 +431,7 @@ var ChatXAI = class extends ChatOpenAICompletions {
|
|
|
431
431
|
apiKey,
|
|
432
432
|
configuration: { baseURL: fields?.baseURL ?? "https://api.x.ai/v1" }
|
|
433
433
|
});
|
|
434
|
-
this._addVersion("@langchain/xai", "1.3.
|
|
434
|
+
this._addVersion("@langchain/xai", "1.3.19");
|
|
435
435
|
this.searchParameters = fields?.searchParameters;
|
|
436
436
|
}
|
|
437
437
|
toJSON() {
|
|
@@ -55,7 +55,7 @@ var ChatXAIResponses = class extends _langchain_core_language_models_chat_models
|
|
|
55
55
|
model: modelOrFields
|
|
56
56
|
} : modelOrFields ?? {};
|
|
57
57
|
super(fields);
|
|
58
|
-
this._addVersion("@langchain/xai", "1.3.
|
|
58
|
+
this._addVersion("@langchain/xai", "1.3.19");
|
|
59
59
|
const apiKey = fields?.apiKey ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("XAI_API_KEY");
|
|
60
60
|
if (!apiKey) throw new Error(`xAI API key not found. Please set the XAI_API_KEY environment variable or provide the key in the "apiKey" field.`);
|
|
61
61
|
this.apiKey = apiKey;
|
|
@@ -55,7 +55,7 @@ var ChatXAIResponses = class extends BaseChatModel {
|
|
|
55
55
|
model: modelOrFields
|
|
56
56
|
} : modelOrFields ?? {};
|
|
57
57
|
super(fields);
|
|
58
|
-
this._addVersion("@langchain/xai", "1.3.
|
|
58
|
+
this._addVersion("@langchain/xai", "1.3.19");
|
|
59
59
|
const apiKey = fields?.apiKey ?? getEnvironmentVariable("XAI_API_KEY");
|
|
60
60
|
if (!apiKey) throw new Error(`xAI API key not found. Please set the XAI_API_KEY environment variable or provide the key in the "apiKey" field.`);
|
|
61
61
|
this.apiKey = apiKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/xai",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
4
4
|
"description": "xAI integration for LangChain.js",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/providers/langchain-xai/",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@langchain/openai": "1.4.
|
|
17
|
+
"@langchain/openai": "1.4.7"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@langchain/core": "^1.0.0"
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"typescript": "~5.8.3",
|
|
28
28
|
"vitest": "^4.1.2",
|
|
29
29
|
"zod": "^3.25.76",
|
|
30
|
-
"@langchain/openai": "^1.4.
|
|
30
|
+
"@langchain/openai": "^1.4.7",
|
|
31
|
+
"@langchain/core": "^1.1.48",
|
|
31
32
|
"@langchain/standard-tests": "0.0.23",
|
|
32
|
-
"@langchain/tsconfig": "0.0.1"
|
|
33
|
-
"@langchain/core": "^1.1.47"
|
|
33
|
+
"@langchain/tsconfig": "0.0.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|