@langchain/openrouter 0.4.2 → 0.4.4
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 +14 -0
- package/dist/chat_models/index.cjs +1 -1
- package/dist/chat_models/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @langchain/openrouter
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`988ca7d`](https://github.com/langchain-ai/langchainjs/commit/988ca7dc9f1debd48278c6e888553e11c7845ca3)]:
|
|
8
|
+
- @langchain/openai@1.5.4
|
|
9
|
+
|
|
10
|
+
## 0.4.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`3205b35`](https://github.com/langchain-ai/langchainjs/commit/3205b35ac83037a2fff2998f16a66b5126b306f8)]:
|
|
15
|
+
- @langchain/openai@1.5.3
|
|
16
|
+
|
|
3
17
|
## 0.4.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -152,7 +152,7 @@ var ChatOpenRouter = class extends _langchain_core_language_models_chat_models.B
|
|
|
152
152
|
model: modelOrFields
|
|
153
153
|
} : modelOrFields;
|
|
154
154
|
super(fields);
|
|
155
|
-
this._addVersion("@langchain/openrouter", "0.4.
|
|
155
|
+
this._addVersion("@langchain/openrouter", "0.4.4");
|
|
156
156
|
const apiKey = fields.apiKey ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("OPENROUTER_API_KEY");
|
|
157
157
|
if (!apiKey) throw new require_errors.OpenRouterAuthError("OpenRouter API key is required. Get one at https://openrouter.ai/keys and set it via the `apiKey` parameter or the OPENROUTER_API_KEY environment variable.");
|
|
158
158
|
this.apiKey = apiKey;
|
|
@@ -152,7 +152,7 @@ var ChatOpenRouter = class extends BaseChatModel {
|
|
|
152
152
|
model: modelOrFields
|
|
153
153
|
} : modelOrFields;
|
|
154
154
|
super(fields);
|
|
155
|
-
this._addVersion("@langchain/openrouter", "0.4.
|
|
155
|
+
this._addVersion("@langchain/openrouter", "0.4.4");
|
|
156
156
|
const apiKey = fields.apiKey ?? getEnvironmentVariable("OPENROUTER_API_KEY");
|
|
157
157
|
if (!apiKey) throw new OpenRouterAuthError("OpenRouter API key is required. Get one at https://openrouter.ai/keys and set it via the `apiKey` parameter or the OPENROUTER_API_KEY environment variable.");
|
|
158
158
|
this.apiKey = apiKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/openrouter",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "OpenRouter integration for LangChain.js",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"eventsource-parser": "^3.1.0",
|
|
18
18
|
"openai": "^6.41.0",
|
|
19
|
-
"@langchain/openai": "1.5.
|
|
19
|
+
"@langchain/openai": "1.5.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@langchain/core": "^1.0.0"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"vitest": "^4.1.8",
|
|
30
30
|
"zod": "^3.25.76 || ^4",
|
|
31
31
|
"zod-to-json-schema": "^3.25.2",
|
|
32
|
-
"@langchain/core": "^1.2.
|
|
33
|
-
"@langchain/openai": "^1.5.
|
|
32
|
+
"@langchain/core": "^1.2.2",
|
|
33
|
+
"@langchain/openai": "^1.5.4",
|
|
34
34
|
"@langchain/standard-tests": "0.0.23"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|