@langchain/openrouter 0.2.4 → 0.2.5

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/openrouter
2
2
 
3
+ ## 0.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`229a7ad`](https://github.com/langchain-ai/langchainjs/commit/229a7ad67b9a7ebd8df3ca451e0b8195bea0190e), [`36fb0ef`](https://github.com/langchain-ai/langchainjs/commit/36fb0ef1dc76c096dcfa0c777e10c9f9365a5240)]:
8
+ - @langchain/openai@1.4.6
9
+
3
10
  ## 0.2.4
4
11
 
5
12
  ### Patch Changes
@@ -151,7 +151,7 @@ var ChatOpenRouter = class extends _langchain_core_language_models_chat_models.B
151
151
  model: modelOrFields
152
152
  } : modelOrFields;
153
153
  super(fields);
154
- this._addVersion("@langchain/openrouter", "0.2.4");
154
+ this._addVersion("@langchain/openrouter", "0.2.5");
155
155
  const apiKey = fields.apiKey ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("OPENROUTER_API_KEY");
156
156
  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.");
157
157
  this.apiKey = apiKey;
@@ -151,7 +151,7 @@ var ChatOpenRouter = class extends BaseChatModel {
151
151
  model: modelOrFields
152
152
  } : modelOrFields;
153
153
  super(fields);
154
- this._addVersion("@langchain/openrouter", "0.2.4");
154
+ this._addVersion("@langchain/openrouter", "0.2.5");
155
155
  const apiKey = fields.apiKey ?? getEnvironmentVariable("OPENROUTER_API_KEY");
156
156
  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.");
157
157
  this.apiKey = apiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openrouter",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "OpenRouter integration for LangChain.js",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "eventsource-parser": "^3.0.6",
18
- "openai": "^6.22.0",
19
- "@langchain/openai": "1.4.5"
18
+ "openai": "^6.37.0",
19
+ "@langchain/openai": "1.4.6"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@langchain/core": "^1.0.0"
@@ -29,8 +29,8 @@
29
29
  "vitest": "^4.1.2",
30
30
  "zod": "^3.25.76 || ^4",
31
31
  "zod-to-json-schema": "^3.25.2",
32
- "@langchain/core": "^1.1.44",
33
- "@langchain/openai": "^1.4.5",
32
+ "@langchain/openai": "^1.4.6",
33
+ "@langchain/core": "^1.1.47",
34
34
  "@langchain/standard-tests": "0.0.23"
35
35
  },
36
36
  "publishConfig": {