@openclaw/deepinfra-provider 2026.7.2-beta.4 → 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.
package/dist/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { DEEPINFRA_DEFAULT_MODEL_REF } from "./provider-models.js";
2
+ import { deepinfraEmbeddingProviderAdapter } from "./embedding-adapter.js";
2
3
  import { buildDeepInfraImageGenerationProvider } from "./image-generation-provider.js";
3
4
  import { deepinfraMediaUnderstandingProvider } from "./media-understanding-provider.js";
4
- import { deepinfraMemoryEmbeddingProviderAdapter } from "./memory-embedding-adapter.js";
5
5
  import { applyDeepInfraConfig } from "./onboard.js";
6
6
  import { buildDeepInfraProvider, buildStaticDeepInfraProvider } from "./provider-catalog.js";
7
7
  import { buildDeepInfraSpeechProvider } from "./speech-provider.js";
8
8
  import { buildDeepInfraVideoGenerationProvider } from "./video-generation-provider.js";
9
- export { DEEPINFRA_DEFAULT_MODEL_REF, applyDeepInfraConfig, buildDeepInfraImageGenerationProvider, buildDeepInfraProvider, buildDeepInfraSpeechProvider, buildDeepInfraVideoGenerationProvider, buildStaticDeepInfraProvider, deepinfraMediaUnderstandingProvider, deepinfraMemoryEmbeddingProviderAdapter };
9
+ export { DEEPINFRA_DEFAULT_MODEL_REF, applyDeepInfraConfig, buildDeepInfraImageGenerationProvider, buildDeepInfraProvider, buildDeepInfraSpeechProvider, buildDeepInfraVideoGenerationProvider, buildStaticDeepInfraProvider, deepinfraEmbeddingProviderAdapter, deepinfraMediaUnderstandingProvider };
@@ -1,4 +1,4 @@
1
- import { t as modelCatalog } from "./openclaw.plugin-C1yZ4_ko.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";
@@ -0,0 +1,58 @@
1
+ import { DEFAULT_DEEPINFRA_EMBEDDING_MODEL, createDeepInfraEmbeddingProvider } from "./embedding-provider.js";
2
+ //#region extensions/deepinfra/embedding-adapter.ts
3
+ function textFromEmbeddingInput(input) {
4
+ return typeof input === "string" ? input : input.text;
5
+ }
6
+ function adaptMemoryEmbeddingProvider(provider) {
7
+ return {
8
+ id: provider.id,
9
+ model: provider.model,
10
+ ...typeof provider.maxInputTokens === "number" ? { maxInputTokens: provider.maxInputTokens } : {},
11
+ embed: async (input, options) => await provider.embedQuery(textFromEmbeddingInput(input), { signal: options?.signal }),
12
+ embedBatch: async (inputs, options) => await provider.embedBatch(inputs.map(textFromEmbeddingInput), { signal: options?.signal }),
13
+ ...provider.close ? { close: async () => await provider.close?.() } : {}
14
+ };
15
+ }
16
+ function buildMemoryCreateOptions(options) {
17
+ return {
18
+ config: options.config,
19
+ agentDir: options.agentDir,
20
+ provider: "deepinfra",
21
+ fallback: "none",
22
+ remote: options.remote,
23
+ model: options.model,
24
+ inputType: options.inputType,
25
+ queryInputType: options.queryInputType,
26
+ documentInputType: options.documentInputType,
27
+ outputDimensionality: options.dimensions,
28
+ taskType: options.taskType
29
+ };
30
+ }
31
+ function buildDeepInfraEmbeddingAdapter(options) {
32
+ const defaultModel = options?.embedModels?.[0]?.id ?? DEFAULT_DEEPINFRA_EMBEDDING_MODEL;
33
+ return {
34
+ id: "deepinfra",
35
+ defaultModel,
36
+ transport: "remote",
37
+ authProviderId: "deepinfra",
38
+ create: async (createOptions) => {
39
+ const { provider, client } = await createDeepInfraEmbeddingProvider({
40
+ ...buildMemoryCreateOptions(createOptions),
41
+ defaultModel
42
+ });
43
+ return {
44
+ provider: provider ? adaptMemoryEmbeddingProvider(provider) : null,
45
+ runtime: {
46
+ id: "deepinfra",
47
+ cacheKeyData: {
48
+ provider: "deepinfra",
49
+ model: client.model
50
+ }
51
+ }
52
+ };
53
+ }
54
+ };
55
+ }
56
+ const deepinfraEmbeddingProviderAdapter = buildDeepInfraEmbeddingAdapter();
57
+ //#endregion
58
+ export { buildDeepInfraEmbeddingAdapter, deepinfraEmbeddingProviderAdapter };
@@ -1,7 +1,7 @@
1
1
  import { DEEPINFRA_BASE_URL } from "./provider-models.js";
2
2
  import { DEEPINFRA_IMAGE_FALLBACK_MODELS, normalizeDeepInfraBaseUrl, normalizeDeepInfraModelRef } from "./media-models.js";
3
- import { createOpenAiCompatibleImageGenerationProvider, imageSourceUploadFileName } from "openclaw/plugin-sdk/image-generation";
4
3
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
+ import { createOpenAiCompatibleImageGenerationProvider, imageSourceUploadFileName } from "openclaw/plugin-sdk/image-generation";
5
5
  //#region extensions/deepinfra/image-generation-provider.ts
6
6
  const DEEPINFRA_IMAGE_SIZES = [
7
7
  "512x512",
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createDeepInfraAnthropicCacheWrapper } from "./cache-wrapper.js";
2
2
  import { DEEPINFRA_DEFAULT_MODEL_REF, discoverDeepInfraModels, getDeepInfraSurfaceFallbackCatalog, hasDeepInfraApiKey } from "./provider-models.js";
3
+ import { buildDeepInfraEmbeddingAdapter } from "./embedding-adapter.js";
3
4
  import { buildDeepInfraImageGenerationProvider } from "./image-generation-provider.js";
4
5
  import { buildDeepInfraMediaUnderstandingProvider } from "./media-understanding-provider.js";
5
- import { buildDeepInfraMemoryEmbeddingAdapter } from "./memory-embedding-adapter.js";
6
6
  import { applyDeepInfraConfig } from "./onboard.js";
7
7
  import { buildDeepInfraApiKeyCatalog, buildStaticDeepInfraProvider } from "./provider-catalog.js";
8
8
  import { buildDeepInfraSpeechProvider } from "./speech-provider.js";
@@ -104,7 +104,7 @@ var deepinfra_default = defineSingleProviderPluginEntry({
104
104
  vlmModels: catalog.vlm,
105
105
  sttModels: catalog.stt
106
106
  }));
107
- api.registerMemoryEmbeddingProvider(buildDeepInfraMemoryEmbeddingAdapter({ embedModels: catalog.embed }));
107
+ api.registerEmbeddingProvider(buildDeepInfraEmbeddingAdapter({ embedModels: catalog.embed }));
108
108
  api.registerSpeechProvider(buildDeepInfraSpeechProvider({ ttsModels: catalog.tts }));
109
109
  api.registerVideoGenerationProvider(buildDeepInfraVideoGenerationProvider({ videoGenModels: catalog.videoGen }));
110
110
  api.registerModelCatalogProvider({
@@ -12,84 +12,108 @@ var modelCatalog = {
12
12
  "contextWindow": 1048576,
13
13
  "maxTokens": 1048576,
14
14
  "cost": {
15
- "input": .1,
16
- "output": .2,
17
- "cacheRead": .02,
15
+ "input": .09,
16
+ "output": .18,
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
- "id": "deepseek-ai/DeepSeek-V3.2",
24
- "name": "DeepSeek V3.2",
25
- "reasoning": false,
26
+ "id": "deepseek-ai/DeepSeek-V4-Pro",
27
+ "name": "DeepSeek V4 Pro",
28
+ "reasoning": true,
26
29
  "input": ["text"],
27
- "contextWindow": 163840,
28
- "maxTokens": 163840,
30
+ "contextWindow": 1048576,
31
+ "maxTokens": 1048576,
29
32
  "cost": {
30
- "input": .26,
31
- "output": .38,
32
- "cacheRead": .13,
33
+ "input": 1.3,
34
+ "output": 2.6,
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
- "id": "zai-org/GLM-5.1",
39
- "name": "GLM-5.1",
44
+ "id": "zai-org/GLM-5.2",
45
+ "name": "GLM-5.2",
40
46
  "reasoning": true,
41
47
  "input": ["text"],
42
- "contextWindow": 202752,
43
- "maxTokens": 202752,
48
+ "contextWindow": 1048576,
49
+ "maxTokens": 1048576,
44
50
  "cost": {
45
- "input": 1.05,
46
- "output": 3.5,
47
- "cacheRead": .205000005,
51
+ "input": .93,
52
+ "output": 3,
53
+ "cacheRead": .18,
54
+ "cacheWrite": 0
55
+ },
56
+ "compat": {
57
+ "supportsUsageInStreaming": true,
58
+ "codeMode": "capable"
59
+ }
60
+ },
61
+ {
62
+ "id": "stepfun-ai/Step-3.7-Flash",
63
+ "name": "Step 3.7 Flash",
64
+ "reasoning": true,
65
+ "input": ["text", "image"],
66
+ "contextWindow": 262144,
67
+ "maxTokens": 262144,
68
+ "cost": {
69
+ "input": .2,
70
+ "output": 1.15,
71
+ "cacheRead": .04,
48
72
  "cacheWrite": 0
49
73
  },
50
74
  "compat": { "supportsUsageInStreaming": true }
51
75
  },
52
76
  {
53
- "id": "stepfun-ai/Step-3.5-Flash",
54
- "name": "Step 3.5 Flash",
55
- "reasoning": false,
56
- "input": ["text"],
77
+ "id": "moonshotai/Kimi-K2.7-Code",
78
+ "name": "Kimi K2.7 Code",
79
+ "reasoning": true,
80
+ "input": ["text", "image"],
57
81
  "contextWindow": 262144,
58
82
  "maxTokens": 262144,
59
83
  "cost": {
60
- "input": .1,
61
- "output": .3,
62
- "cacheRead": .02,
84
+ "input": .74,
85
+ "output": 3.5,
86
+ "cacheRead": .15,
63
87
  "cacheWrite": 0
64
88
  },
65
89
  "compat": { "supportsUsageInStreaming": true }
66
90
  },
67
91
  {
68
- "id": "MiniMaxAI/MiniMax-M2.5",
69
- "name": "MiniMax M2.5",
92
+ "id": "moonshotai/Kimi-K2.6",
93
+ "name": "Kimi K2.6",
70
94
  "reasoning": true,
71
- "input": ["text"],
72
- "contextWindow": 196608,
73
- "maxTokens": 196608,
95
+ "input": ["text", "image"],
96
+ "contextWindow": 262144,
97
+ "maxTokens": 262144,
74
98
  "cost": {
75
- "input": .15,
76
- "output": 1.15,
77
- "cacheRead": .03,
99
+ "input": .75,
100
+ "output": 3.5,
101
+ "cacheRead": .15,
78
102
  "cacheWrite": 0
79
103
  },
80
104
  "compat": { "supportsUsageInStreaming": true }
81
105
  },
82
106
  {
83
- "id": "moonshotai/Kimi-K2.5",
84
- "name": "Kimi K2.5",
107
+ "id": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
108
+ "name": "NVIDIA Nemotron 3 Ultra 550B A55B",
85
109
  "reasoning": true,
86
110
  "input": ["text", "image"],
87
111
  "contextWindow": 262144,
88
112
  "maxTokens": 262144,
89
113
  "cost": {
90
- "input": .45,
91
- "output": 2.25,
92
- "cacheRead": .070000002,
114
+ "input": .5,
115
+ "output": 2.2,
116
+ "cacheRead": .1,
93
117
  "cacheWrite": 0
94
118
  },
95
119
  "compat": { "supportsUsageInStreaming": true }
@@ -102,24 +126,80 @@ var modelCatalog = {
102
126
  "contextWindow": 262144,
103
127
  "maxTokens": 262144,
104
128
  "cost": {
105
- "input": .1,
106
- "output": .5,
129
+ "input": .085,
130
+ "output": .4,
107
131
  "cacheRead": 0,
108
132
  "cacheWrite": 0
109
133
  },
110
134
  "compat": { "supportsUsageInStreaming": true }
111
135
  },
112
136
  {
113
- "id": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
114
- "name": "Llama 3.3 70B Instruct Turbo",
137
+ "id": "deepseek-ai/DeepSeek-V3.2",
138
+ "name": "DeepSeek V3.2",
139
+ "status": "deprecated",
140
+ "replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
115
141
  "reasoning": false,
116
142
  "input": ["text"],
117
- "contextWindow": 131072,
118
- "maxTokens": 131072,
143
+ "contextWindow": 163840,
144
+ "maxTokens": 163840,
145
+ "cost": {
146
+ "input": .26,
147
+ "output": .38,
148
+ "cacheRead": .13,
149
+ "cacheWrite": 0
150
+ },
151
+ "compat": { "supportsUsageInStreaming": true }
152
+ },
153
+ {
154
+ "id": "zai-org/GLM-5.1",
155
+ "name": "GLM-5.1",
156
+ "status": "deprecated",
157
+ "replacedBy": "zai-org/GLM-5.2",
158
+ "reasoning": true,
159
+ "input": ["text"],
160
+ "contextWindow": 202752,
161
+ "maxTokens": 202752,
162
+ "cost": {
163
+ "input": 1.05,
164
+ "output": 3.5,
165
+ "cacheRead": .205000005,
166
+ "cacheWrite": 0
167
+ },
168
+ "compat": {
169
+ "supportsUsageInStreaming": true,
170
+ "codeMode": "capable"
171
+ }
172
+ },
173
+ {
174
+ "id": "stepfun-ai/Step-3.5-Flash",
175
+ "name": "Step 3.5 Flash",
176
+ "status": "deprecated",
177
+ "replacedBy": "stepfun-ai/Step-3.7-Flash",
178
+ "reasoning": true,
179
+ "input": ["text"],
180
+ "contextWindow": 262144,
181
+ "maxTokens": 262144,
119
182
  "cost": {
120
183
  "input": .1,
121
- "output": .32,
122
- "cacheRead": 0,
184
+ "output": .3,
185
+ "cacheRead": .02,
186
+ "cacheWrite": 0
187
+ },
188
+ "compat": { "supportsUsageInStreaming": true }
189
+ },
190
+ {
191
+ "id": "moonshotai/Kimi-K2.5",
192
+ "name": "Kimi K2.5",
193
+ "status": "deprecated",
194
+ "replacedBy": "moonshotai/Kimi-K2.6",
195
+ "reasoning": true,
196
+ "input": ["text", "image"],
197
+ "contextWindow": 262144,
198
+ "maxTokens": 262144,
199
+ "cost": {
200
+ "input": .45,
201
+ "output": 2.25,
202
+ "cacheRead": .070000002,
123
203
  "cacheWrite": 0
124
204
  },
125
205
  "compat": { "supportsUsageInStreaming": true }
@@ -1,4 +1,4 @@
1
- import { t as modelCatalog } from "./openclaw.plugin-C1yZ4_ko.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);
@@ -42,43 +42,63 @@
42
42
  "contextWindow": 1048576,
43
43
  "maxTokens": 1048576,
44
44
  "cost": {
45
- "input": 0.1,
46
- "output": 0.2,
47
- "cacheRead": 0.02,
45
+ "input": 0.09,
46
+ "output": 0.18,
47
+ "cacheRead": 0.018,
48
48
  "cacheWrite": 0
49
49
  },
50
50
  "compat": {
51
- "supportsUsageInStreaming": true
51
+ "supportsUsageInStreaming": true,
52
+ "codeMode": "capable"
52
53
  }
53
54
  },
54
55
  {
55
- "id": "deepseek-ai/DeepSeek-V3.2",
56
- "name": "DeepSeek V3.2",
57
- "reasoning": false,
56
+ "id": "deepseek-ai/DeepSeek-V4-Pro",
57
+ "name": "DeepSeek V4 Pro",
58
+ "reasoning": true,
58
59
  "input": ["text"],
59
- "contextWindow": 163840,
60
- "maxTokens": 163840,
60
+ "contextWindow": 1048576,
61
+ "maxTokens": 1048576,
61
62
  "cost": {
62
- "input": 0.26,
63
- "output": 0.38,
64
- "cacheRead": 0.13,
63
+ "input": 1.3,
64
+ "output": 2.6,
65
+ "cacheRead": 0.1,
65
66
  "cacheWrite": 0
66
67
  },
67
68
  "compat": {
68
- "supportsUsageInStreaming": true
69
+ "supportsUsageInStreaming": true,
70
+ "codeMode": "capable"
69
71
  }
70
72
  },
71
73
  {
72
- "id": "zai-org/GLM-5.1",
73
- "name": "GLM-5.1",
74
+ "id": "zai-org/GLM-5.2",
75
+ "name": "GLM-5.2",
74
76
  "reasoning": true,
75
77
  "input": ["text"],
76
- "contextWindow": 202752,
77
- "maxTokens": 202752,
78
+ "contextWindow": 1048576,
79
+ "maxTokens": 1048576,
78
80
  "cost": {
79
- "input": 1.05,
80
- "output": 3.5,
81
- "cacheRead": 0.205000005,
81
+ "input": 0.93,
82
+ "output": 3,
83
+ "cacheRead": 0.18,
84
+ "cacheWrite": 0
85
+ },
86
+ "compat": {
87
+ "supportsUsageInStreaming": true,
88
+ "codeMode": "capable"
89
+ }
90
+ },
91
+ {
92
+ "id": "stepfun-ai/Step-3.7-Flash",
93
+ "name": "Step 3.7 Flash",
94
+ "reasoning": true,
95
+ "input": ["text", "image"],
96
+ "contextWindow": 262144,
97
+ "maxTokens": 262144,
98
+ "cost": {
99
+ "input": 0.2,
100
+ "output": 1.15,
101
+ "cacheRead": 0.04,
82
102
  "cacheWrite": 0
83
103
  },
84
104
  "compat": {
@@ -86,16 +106,16 @@
86
106
  }
87
107
  },
88
108
  {
89
- "id": "stepfun-ai/Step-3.5-Flash",
90
- "name": "Step 3.5 Flash",
91
- "reasoning": false,
92
- "input": ["text"],
109
+ "id": "moonshotai/Kimi-K2.7-Code",
110
+ "name": "Kimi K2.7 Code",
111
+ "reasoning": true,
112
+ "input": ["text", "image"],
93
113
  "contextWindow": 262144,
94
114
  "maxTokens": 262144,
95
115
  "cost": {
96
- "input": 0.1,
97
- "output": 0.3,
98
- "cacheRead": 0.02,
116
+ "input": 0.74,
117
+ "output": 3.5,
118
+ "cacheRead": 0.15,
99
119
  "cacheWrite": 0
100
120
  },
101
121
  "compat": {
@@ -103,16 +123,16 @@
103
123
  }
104
124
  },
105
125
  {
106
- "id": "MiniMaxAI/MiniMax-M2.5",
107
- "name": "MiniMax M2.5",
126
+ "id": "moonshotai/Kimi-K2.6",
127
+ "name": "Kimi K2.6",
108
128
  "reasoning": true,
109
- "input": ["text"],
110
- "contextWindow": 196608,
111
- "maxTokens": 196608,
129
+ "input": ["text", "image"],
130
+ "contextWindow": 262144,
131
+ "maxTokens": 262144,
112
132
  "cost": {
113
- "input": 0.15,
114
- "output": 1.15,
115
- "cacheRead": 0.03,
133
+ "input": 0.75,
134
+ "output": 3.5,
135
+ "cacheRead": 0.15,
116
136
  "cacheWrite": 0
117
137
  },
118
138
  "compat": {
@@ -120,16 +140,16 @@
120
140
  }
121
141
  },
122
142
  {
123
- "id": "moonshotai/Kimi-K2.5",
124
- "name": "Kimi K2.5",
143
+ "id": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
144
+ "name": "NVIDIA Nemotron 3 Ultra 550B A55B",
125
145
  "reasoning": true,
126
146
  "input": ["text", "image"],
127
147
  "contextWindow": 262144,
128
148
  "maxTokens": 262144,
129
149
  "cost": {
130
- "input": 0.45,
131
- "output": 2.25,
132
- "cacheRead": 0.070000002,
150
+ "input": 0.5,
151
+ "output": 2.2,
152
+ "cacheRead": 0.1,
133
153
  "cacheWrite": 0
134
154
  },
135
155
  "compat": {
@@ -144,8 +164,8 @@
144
164
  "contextWindow": 262144,
145
165
  "maxTokens": 262144,
146
166
  "cost": {
147
- "input": 0.1,
148
- "output": 0.5,
167
+ "input": 0.085,
168
+ "output": 0.4,
149
169
  "cacheRead": 0,
150
170
  "cacheWrite": 0
151
171
  },
@@ -154,16 +174,76 @@
154
174
  }
155
175
  },
156
176
  {
157
- "id": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
158
- "name": "Llama 3.3 70B Instruct Turbo",
177
+ "id": "deepseek-ai/DeepSeek-V3.2",
178
+ "name": "DeepSeek V3.2",
179
+ "status": "deprecated",
180
+ "replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
159
181
  "reasoning": false,
160
182
  "input": ["text"],
161
- "contextWindow": 131072,
162
- "maxTokens": 131072,
183
+ "contextWindow": 163840,
184
+ "maxTokens": 163840,
185
+ "cost": {
186
+ "input": 0.26,
187
+ "output": 0.38,
188
+ "cacheRead": 0.13,
189
+ "cacheWrite": 0
190
+ },
191
+ "compat": {
192
+ "supportsUsageInStreaming": true
193
+ }
194
+ },
195
+ {
196
+ "id": "zai-org/GLM-5.1",
197
+ "name": "GLM-5.1",
198
+ "status": "deprecated",
199
+ "replacedBy": "zai-org/GLM-5.2",
200
+ "reasoning": true,
201
+ "input": ["text"],
202
+ "contextWindow": 202752,
203
+ "maxTokens": 202752,
204
+ "cost": {
205
+ "input": 1.05,
206
+ "output": 3.5,
207
+ "cacheRead": 0.205000005,
208
+ "cacheWrite": 0
209
+ },
210
+ "compat": {
211
+ "supportsUsageInStreaming": true,
212
+ "codeMode": "capable"
213
+ }
214
+ },
215
+ {
216
+ "id": "stepfun-ai/Step-3.5-Flash",
217
+ "name": "Step 3.5 Flash",
218
+ "status": "deprecated",
219
+ "replacedBy": "stepfun-ai/Step-3.7-Flash",
220
+ "reasoning": true,
221
+ "input": ["text"],
222
+ "contextWindow": 262144,
223
+ "maxTokens": 262144,
163
224
  "cost": {
164
225
  "input": 0.1,
165
- "output": 0.32,
166
- "cacheRead": 0,
226
+ "output": 0.3,
227
+ "cacheRead": 0.02,
228
+ "cacheWrite": 0
229
+ },
230
+ "compat": {
231
+ "supportsUsageInStreaming": true
232
+ }
233
+ },
234
+ {
235
+ "id": "moonshotai/Kimi-K2.5",
236
+ "name": "Kimi K2.5",
237
+ "status": "deprecated",
238
+ "replacedBy": "moonshotai/Kimi-K2.6",
239
+ "reasoning": true,
240
+ "input": ["text", "image"],
241
+ "contextWindow": 262144,
242
+ "maxTokens": 262144,
243
+ "cost": {
244
+ "input": 0.45,
245
+ "output": 2.25,
246
+ "cacheRead": 0.070000002,
167
247
  "cacheWrite": 0
168
248
  },
169
249
  "compat": {
@@ -196,7 +276,7 @@
196
276
  ],
197
277
  "contracts": {
198
278
  "mediaUnderstandingProviders": ["deepinfra"],
199
- "memoryEmbeddingProviders": ["deepinfra"],
279
+ "embeddingProviders": ["deepinfra"],
200
280
  "imageGenerationProviders": ["deepinfra"],
201
281
  "speechProviders": ["deepinfra"],
202
282
  "videoGenerationProviders": ["deepinfra"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.7.2-beta.4",
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.4"
21
+ "pluginApi": ">=2026.7.2-beta.7"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.4",
24
+ "openclawVersion": "2026.7.2-beta.7",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -35,11 +35,10 @@
35
35
  "files": [
36
36
  "dist/**",
37
37
  "openclaw.plugin.json",
38
- "npm-shrinkwrap.json",
39
38
  "README.md"
40
39
  ],
41
40
  "peerDependencies": {
42
- "openclaw": ">=2026.7.2-beta.4"
41
+ "openclaw": ">=2026.7.2-beta.7"
43
42
  },
44
43
  "peerDependenciesMeta": {
45
44
  "openclaw": {
@@ -1,36 +0,0 @@
1
- import { DEFAULT_DEEPINFRA_EMBEDDING_MODEL, createDeepInfraEmbeddingProvider } from "./embedding-provider.js";
2
- import { isMissingEmbeddingApiKeyError } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
3
- //#region extensions/deepinfra/memory-embedding-adapter.ts
4
- function buildDeepInfraMemoryEmbeddingAdapter(options) {
5
- const defaultModel = options?.embedModels?.[0]?.id ?? DEFAULT_DEEPINFRA_EMBEDDING_MODEL;
6
- return {
7
- id: "deepinfra",
8
- defaultModel,
9
- transport: "remote",
10
- authProviderId: "deepinfra",
11
- autoSelectPriority: 55,
12
- allowExplicitWhenConfiguredAuto: true,
13
- shouldContinueAutoSelection: isMissingEmbeddingApiKeyError,
14
- create: async (createOptions) => {
15
- const { provider, client } = await createDeepInfraEmbeddingProvider({
16
- ...createOptions,
17
- provider: "deepinfra",
18
- fallback: "none",
19
- defaultModel
20
- });
21
- return {
22
- provider,
23
- runtime: {
24
- id: "deepinfra",
25
- cacheKeyData: {
26
- provider: "deepinfra",
27
- model: client.model
28
- }
29
- }
30
- };
31
- }
32
- };
33
- }
34
- const deepinfraMemoryEmbeddingProviderAdapter = buildDeepInfraMemoryEmbeddingAdapter();
35
- //#endregion
36
- export { buildDeepInfraMemoryEmbeddingAdapter, deepinfraMemoryEmbeddingProviderAdapter };
@@ -1,12 +0,0 @@
1
- {
2
- "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/deepinfra-provider",
9
- "version": "2026.7.2-beta.4"
10
- }
11
- }
12
- }