@openclaw/deepinfra-provider 2026.7.2-beta.5 → 2026.7.2-beta.7

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.
@@ -1,4 +1,4 @@
1
- import { t as modelCatalog } from "./openclaw.plugin-DhzOI6DT.js";
1
+ import { t as modelCatalog } from "./openclaw.plugin-DomWf43f.js";
2
2
  import { asObjectRecord } from "openclaw/plugin-sdk/runtime-doctor";
3
3
  //#region extensions/deepinfra/doctor-contract-api.ts
4
4
  const PROVIDER_PATH = "models.providers.deepinfra";
@@ -17,7 +17,10 @@ var modelCatalog = {
17
17
  "cacheRead": .018,
18
18
  "cacheWrite": 0
19
19
  },
20
- "compat": { "supportsUsageInStreaming": true }
20
+ "compat": {
21
+ "supportsUsageInStreaming": true,
22
+ "codeMode": "capable"
23
+ }
21
24
  },
22
25
  {
23
26
  "id": "deepseek-ai/DeepSeek-V4-Pro",
@@ -32,7 +35,10 @@ var modelCatalog = {
32
35
  "cacheRead": .1,
33
36
  "cacheWrite": 0
34
37
  },
35
- "compat": { "supportsUsageInStreaming": true }
38
+ "compat": {
39
+ "supportsUsageInStreaming": true,
40
+ "codeMode": "capable"
41
+ }
36
42
  },
37
43
  {
38
44
  "id": "zai-org/GLM-5.2",
@@ -47,7 +53,10 @@ var modelCatalog = {
47
53
  "cacheRead": .18,
48
54
  "cacheWrite": 0
49
55
  },
50
- "compat": { "supportsUsageInStreaming": true }
56
+ "compat": {
57
+ "supportsUsageInStreaming": true,
58
+ "codeMode": "capable"
59
+ }
51
60
  },
52
61
  {
53
62
  "id": "stepfun-ai/Step-3.7-Flash",
@@ -156,7 +165,10 @@ var modelCatalog = {
156
165
  "cacheRead": .205000005,
157
166
  "cacheWrite": 0
158
167
  },
159
- "compat": { "supportsUsageInStreaming": true }
168
+ "compat": {
169
+ "supportsUsageInStreaming": true,
170
+ "codeMode": "capable"
171
+ }
160
172
  },
161
173
  {
162
174
  "id": "stepfun-ai/Step-3.5-Flash",
@@ -1,4 +1,4 @@
1
- import { t as modelCatalog } from "./openclaw.plugin-DhzOI6DT.js";
1
+ import { t as modelCatalog } from "./openclaw.plugin-DomWf43f.js";
2
2
  import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
3
3
  import { asPositiveSafeInteger } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-runtime";
@@ -230,8 +230,8 @@ function hasDeepInfraApiKey(options) {
230
230
  });
231
231
  }
232
232
  async function discoverDeepInfraSurfaces(options) {
233
- if (process.env.VITEST) return manifestFallbackCatalog();
234
233
  const env = options?.env ?? process.env;
234
+ if (env.NODE_ENV === "test" || env.VITEST) return manifestFallbackCatalog();
235
235
  if (!(options?.hasApiKey ?? hasDeepInfraApiKey({
236
236
  env,
237
237
  agentDir: options?.agentDir
@@ -272,6 +272,7 @@ async function discoverDeepInfraSurfaces(options) {
272
272
  }
273
273
  async function discoverDeepInfraModels(options) {
274
274
  const catalog = await discoverDeepInfraSurfaces(options);
275
+ if (!catalog.live) return DEEPINFRA_MODEL_CATALOG.map(buildDeepInfraModelDefinition);
275
276
  const chatModels = catalog.chat.length > 0 ? catalog.chat : [...catalog.chat, ...catalog.vlm];
276
277
  if (chatModels.length === 0) return DEEPINFRA_MODEL_CATALOG.map(buildDeepInfraModelDefinition);
277
278
  const liveModels = chatModels.map(chatSurfaceModelToModelDefinition);
@@ -48,7 +48,8 @@
48
48
  "cacheWrite": 0
49
49
  },
50
50
  "compat": {
51
- "supportsUsageInStreaming": true
51
+ "supportsUsageInStreaming": true,
52
+ "codeMode": "capable"
52
53
  }
53
54
  },
54
55
  {
@@ -65,7 +66,8 @@
65
66
  "cacheWrite": 0
66
67
  },
67
68
  "compat": {
68
- "supportsUsageInStreaming": true
69
+ "supportsUsageInStreaming": true,
70
+ "codeMode": "capable"
69
71
  }
70
72
  },
71
73
  {
@@ -82,7 +84,8 @@
82
84
  "cacheWrite": 0
83
85
  },
84
86
  "compat": {
85
- "supportsUsageInStreaming": true
87
+ "supportsUsageInStreaming": true,
88
+ "codeMode": "capable"
86
89
  }
87
90
  },
88
91
  {
@@ -205,7 +208,8 @@
205
208
  "cacheWrite": 0
206
209
  },
207
210
  "compat": {
208
- "supportsUsageInStreaming": true
211
+ "supportsUsageInStreaming": true,
212
+ "codeMode": "capable"
209
213
  }
210
214
  },
211
215
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.7.2-beta.5",
3
+ "version": "2026.7.2-beta.7",
4
4
  "description": "OpenClaw DeepInfra provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.7.2-beta.5"
21
+ "pluginApi": ">=2026.7.2-beta.7"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.5",
24
+ "openclawVersion": "2026.7.2-beta.7",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.7.2-beta.5"
41
+ "openclaw": ">=2026.7.2-beta.7"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {