@openclaw/deepinfra-provider 2026.7.2-beta.4 → 2026.7.2-beta.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/dist/api.js +2 -2
- package/dist/doctor-contract-api.js +1 -1
- package/dist/embedding-adapter.js +58 -0
- package/dist/image-generation-provider.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{openclaw.plugin-C1yZ4_ko.js → openclaw.plugin-DhzOI6DT.js} +114 -46
- package/dist/provider-models.js +1 -1
- package/openclaw.plugin.json +123 -47
- package/package.json +4 -5
- package/dist/memory-embedding-adapter.js +0 -36
- package/npm-shrinkwrap.json +0 -12
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,
|
|
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-
|
|
1
|
+
import { t as modelCatalog } from "./openclaw.plugin-DhzOI6DT.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.
|
|
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,99 @@ var modelCatalog = {
|
|
|
12
12
|
"contextWindow": 1048576,
|
|
13
13
|
"maxTokens": 1048576,
|
|
14
14
|
"cost": {
|
|
15
|
-
"input": .
|
|
16
|
-
"output": .
|
|
17
|
-
"cacheRead": .
|
|
15
|
+
"input": .09,
|
|
16
|
+
"output": .18,
|
|
17
|
+
"cacheRead": .018,
|
|
18
18
|
"cacheWrite": 0
|
|
19
19
|
},
|
|
20
20
|
"compat": { "supportsUsageInStreaming": true }
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"id": "deepseek-ai/DeepSeek-
|
|
24
|
-
"name": "DeepSeek
|
|
25
|
-
"reasoning":
|
|
23
|
+
"id": "deepseek-ai/DeepSeek-V4-Pro",
|
|
24
|
+
"name": "DeepSeek V4 Pro",
|
|
25
|
+
"reasoning": true,
|
|
26
26
|
"input": ["text"],
|
|
27
|
-
"contextWindow":
|
|
28
|
-
"maxTokens":
|
|
27
|
+
"contextWindow": 1048576,
|
|
28
|
+
"maxTokens": 1048576,
|
|
29
29
|
"cost": {
|
|
30
|
-
"input": .
|
|
31
|
-
"output": .
|
|
32
|
-
"cacheRead": .
|
|
30
|
+
"input": 1.3,
|
|
31
|
+
"output": 2.6,
|
|
32
|
+
"cacheRead": .1,
|
|
33
33
|
"cacheWrite": 0
|
|
34
34
|
},
|
|
35
35
|
"compat": { "supportsUsageInStreaming": true }
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"id": "zai-org/GLM-5.
|
|
39
|
-
"name": "GLM-5.
|
|
38
|
+
"id": "zai-org/GLM-5.2",
|
|
39
|
+
"name": "GLM-5.2",
|
|
40
40
|
"reasoning": true,
|
|
41
41
|
"input": ["text"],
|
|
42
|
-
"contextWindow":
|
|
43
|
-
"maxTokens":
|
|
42
|
+
"contextWindow": 1048576,
|
|
43
|
+
"maxTokens": 1048576,
|
|
44
44
|
"cost": {
|
|
45
|
-
"input":
|
|
46
|
-
"output": 3
|
|
47
|
-
"cacheRead": .
|
|
45
|
+
"input": .93,
|
|
46
|
+
"output": 3,
|
|
47
|
+
"cacheRead": .18,
|
|
48
48
|
"cacheWrite": 0
|
|
49
49
|
},
|
|
50
50
|
"compat": { "supportsUsageInStreaming": true }
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"id": "stepfun-ai/Step-3.
|
|
54
|
-
"name": "Step 3.
|
|
55
|
-
"reasoning":
|
|
56
|
-
"input": ["text"],
|
|
53
|
+
"id": "stepfun-ai/Step-3.7-Flash",
|
|
54
|
+
"name": "Step 3.7 Flash",
|
|
55
|
+
"reasoning": true,
|
|
56
|
+
"input": ["text", "image"],
|
|
57
57
|
"contextWindow": 262144,
|
|
58
58
|
"maxTokens": 262144,
|
|
59
59
|
"cost": {
|
|
60
|
-
"input": .
|
|
61
|
-
"output": .
|
|
62
|
-
"cacheRead": .
|
|
60
|
+
"input": .2,
|
|
61
|
+
"output": 1.15,
|
|
62
|
+
"cacheRead": .04,
|
|
63
63
|
"cacheWrite": 0
|
|
64
64
|
},
|
|
65
65
|
"compat": { "supportsUsageInStreaming": true }
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
"id": "
|
|
69
|
-
"name": "
|
|
68
|
+
"id": "moonshotai/Kimi-K2.7-Code",
|
|
69
|
+
"name": "Kimi K2.7 Code",
|
|
70
70
|
"reasoning": true,
|
|
71
|
-
"input": ["text"],
|
|
72
|
-
"contextWindow":
|
|
73
|
-
"maxTokens":
|
|
71
|
+
"input": ["text", "image"],
|
|
72
|
+
"contextWindow": 262144,
|
|
73
|
+
"maxTokens": 262144,
|
|
74
74
|
"cost": {
|
|
75
|
-
"input": .
|
|
76
|
-
"output":
|
|
77
|
-
"cacheRead": .
|
|
75
|
+
"input": .74,
|
|
76
|
+
"output": 3.5,
|
|
77
|
+
"cacheRead": .15,
|
|
78
78
|
"cacheWrite": 0
|
|
79
79
|
},
|
|
80
80
|
"compat": { "supportsUsageInStreaming": true }
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"id": "moonshotai/Kimi-K2.
|
|
84
|
-
"name": "Kimi K2.
|
|
83
|
+
"id": "moonshotai/Kimi-K2.6",
|
|
84
|
+
"name": "Kimi K2.6",
|
|
85
85
|
"reasoning": true,
|
|
86
86
|
"input": ["text", "image"],
|
|
87
87
|
"contextWindow": 262144,
|
|
88
88
|
"maxTokens": 262144,
|
|
89
89
|
"cost": {
|
|
90
|
-
"input": .
|
|
91
|
-
"output":
|
|
92
|
-
"cacheRead": .
|
|
90
|
+
"input": .75,
|
|
91
|
+
"output": 3.5,
|
|
92
|
+
"cacheRead": .15,
|
|
93
|
+
"cacheWrite": 0
|
|
94
|
+
},
|
|
95
|
+
"compat": { "supportsUsageInStreaming": true }
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
|
|
99
|
+
"name": "NVIDIA Nemotron 3 Ultra 550B A55B",
|
|
100
|
+
"reasoning": true,
|
|
101
|
+
"input": ["text", "image"],
|
|
102
|
+
"contextWindow": 262144,
|
|
103
|
+
"maxTokens": 262144,
|
|
104
|
+
"cost": {
|
|
105
|
+
"input": .5,
|
|
106
|
+
"output": 2.2,
|
|
107
|
+
"cacheRead": .1,
|
|
93
108
|
"cacheWrite": 0
|
|
94
109
|
},
|
|
95
110
|
"compat": { "supportsUsageInStreaming": true }
|
|
@@ -102,24 +117,77 @@ var modelCatalog = {
|
|
|
102
117
|
"contextWindow": 262144,
|
|
103
118
|
"maxTokens": 262144,
|
|
104
119
|
"cost": {
|
|
105
|
-
"input": .
|
|
106
|
-
"output": .
|
|
120
|
+
"input": .085,
|
|
121
|
+
"output": .4,
|
|
107
122
|
"cacheRead": 0,
|
|
108
123
|
"cacheWrite": 0
|
|
109
124
|
},
|
|
110
125
|
"compat": { "supportsUsageInStreaming": true }
|
|
111
126
|
},
|
|
112
127
|
{
|
|
113
|
-
"id": "
|
|
114
|
-
"name": "
|
|
128
|
+
"id": "deepseek-ai/DeepSeek-V3.2",
|
|
129
|
+
"name": "DeepSeek V3.2",
|
|
130
|
+
"status": "deprecated",
|
|
131
|
+
"replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
|
|
115
132
|
"reasoning": false,
|
|
116
133
|
"input": ["text"],
|
|
117
|
-
"contextWindow":
|
|
118
|
-
"maxTokens":
|
|
134
|
+
"contextWindow": 163840,
|
|
135
|
+
"maxTokens": 163840,
|
|
136
|
+
"cost": {
|
|
137
|
+
"input": .26,
|
|
138
|
+
"output": .38,
|
|
139
|
+
"cacheRead": .13,
|
|
140
|
+
"cacheWrite": 0
|
|
141
|
+
},
|
|
142
|
+
"compat": { "supportsUsageInStreaming": true }
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "zai-org/GLM-5.1",
|
|
146
|
+
"name": "GLM-5.1",
|
|
147
|
+
"status": "deprecated",
|
|
148
|
+
"replacedBy": "zai-org/GLM-5.2",
|
|
149
|
+
"reasoning": true,
|
|
150
|
+
"input": ["text"],
|
|
151
|
+
"contextWindow": 202752,
|
|
152
|
+
"maxTokens": 202752,
|
|
153
|
+
"cost": {
|
|
154
|
+
"input": 1.05,
|
|
155
|
+
"output": 3.5,
|
|
156
|
+
"cacheRead": .205000005,
|
|
157
|
+
"cacheWrite": 0
|
|
158
|
+
},
|
|
159
|
+
"compat": { "supportsUsageInStreaming": true }
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "stepfun-ai/Step-3.5-Flash",
|
|
163
|
+
"name": "Step 3.5 Flash",
|
|
164
|
+
"status": "deprecated",
|
|
165
|
+
"replacedBy": "stepfun-ai/Step-3.7-Flash",
|
|
166
|
+
"reasoning": true,
|
|
167
|
+
"input": ["text"],
|
|
168
|
+
"contextWindow": 262144,
|
|
169
|
+
"maxTokens": 262144,
|
|
119
170
|
"cost": {
|
|
120
171
|
"input": .1,
|
|
121
|
-
"output": .
|
|
122
|
-
"cacheRead":
|
|
172
|
+
"output": .3,
|
|
173
|
+
"cacheRead": .02,
|
|
174
|
+
"cacheWrite": 0
|
|
175
|
+
},
|
|
176
|
+
"compat": { "supportsUsageInStreaming": true }
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "moonshotai/Kimi-K2.5",
|
|
180
|
+
"name": "Kimi K2.5",
|
|
181
|
+
"status": "deprecated",
|
|
182
|
+
"replacedBy": "moonshotai/Kimi-K2.6",
|
|
183
|
+
"reasoning": true,
|
|
184
|
+
"input": ["text", "image"],
|
|
185
|
+
"contextWindow": 262144,
|
|
186
|
+
"maxTokens": 262144,
|
|
187
|
+
"cost": {
|
|
188
|
+
"input": .45,
|
|
189
|
+
"output": 2.25,
|
|
190
|
+
"cacheRead": .070000002,
|
|
123
191
|
"cacheWrite": 0
|
|
124
192
|
},
|
|
125
193
|
"compat": { "supportsUsageInStreaming": true }
|
package/dist/provider-models.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as modelCatalog } from "./openclaw.plugin-
|
|
1
|
+
import { t as modelCatalog } from "./openclaw.plugin-DhzOI6DT.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";
|
package/openclaw.plugin.json
CHANGED
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"contextWindow": 1048576,
|
|
43
43
|
"maxTokens": 1048576,
|
|
44
44
|
"cost": {
|
|
45
|
-
"input": 0.
|
|
46
|
-
"output": 0.
|
|
47
|
-
"cacheRead": 0.
|
|
45
|
+
"input": 0.09,
|
|
46
|
+
"output": 0.18,
|
|
47
|
+
"cacheRead": 0.018,
|
|
48
48
|
"cacheWrite": 0
|
|
49
49
|
},
|
|
50
50
|
"compat": {
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"id": "deepseek-ai/DeepSeek-
|
|
56
|
-
"name": "DeepSeek
|
|
57
|
-
"reasoning":
|
|
55
|
+
"id": "deepseek-ai/DeepSeek-V4-Pro",
|
|
56
|
+
"name": "DeepSeek V4 Pro",
|
|
57
|
+
"reasoning": true,
|
|
58
58
|
"input": ["text"],
|
|
59
|
-
"contextWindow":
|
|
60
|
-
"maxTokens":
|
|
59
|
+
"contextWindow": 1048576,
|
|
60
|
+
"maxTokens": 1048576,
|
|
61
61
|
"cost": {
|
|
62
|
-
"input":
|
|
63
|
-
"output":
|
|
64
|
-
"cacheRead": 0.
|
|
62
|
+
"input": 1.3,
|
|
63
|
+
"output": 2.6,
|
|
64
|
+
"cacheRead": 0.1,
|
|
65
65
|
"cacheWrite": 0
|
|
66
66
|
},
|
|
67
67
|
"compat": {
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
"id": "zai-org/GLM-5.
|
|
73
|
-
"name": "GLM-5.
|
|
72
|
+
"id": "zai-org/GLM-5.2",
|
|
73
|
+
"name": "GLM-5.2",
|
|
74
74
|
"reasoning": true,
|
|
75
75
|
"input": ["text"],
|
|
76
|
-
"contextWindow":
|
|
77
|
-
"maxTokens":
|
|
76
|
+
"contextWindow": 1048576,
|
|
77
|
+
"maxTokens": 1048576,
|
|
78
78
|
"cost": {
|
|
79
|
-
"input":
|
|
80
|
-
"output": 3
|
|
81
|
-
"cacheRead": 0.
|
|
79
|
+
"input": 0.93,
|
|
80
|
+
"output": 3,
|
|
81
|
+
"cacheRead": 0.18,
|
|
82
82
|
"cacheWrite": 0
|
|
83
83
|
},
|
|
84
84
|
"compat": {
|
|
@@ -86,16 +86,16 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
"id": "stepfun-ai/Step-3.
|
|
90
|
-
"name": "Step 3.
|
|
91
|
-
"reasoning":
|
|
92
|
-
"input": ["text"],
|
|
89
|
+
"id": "stepfun-ai/Step-3.7-Flash",
|
|
90
|
+
"name": "Step 3.7 Flash",
|
|
91
|
+
"reasoning": true,
|
|
92
|
+
"input": ["text", "image"],
|
|
93
93
|
"contextWindow": 262144,
|
|
94
94
|
"maxTokens": 262144,
|
|
95
95
|
"cost": {
|
|
96
|
-
"input": 0.
|
|
97
|
-
"output":
|
|
98
|
-
"cacheRead": 0.
|
|
96
|
+
"input": 0.2,
|
|
97
|
+
"output": 1.15,
|
|
98
|
+
"cacheRead": 0.04,
|
|
99
99
|
"cacheWrite": 0
|
|
100
100
|
},
|
|
101
101
|
"compat": {
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"id": "
|
|
107
|
-
"name": "
|
|
106
|
+
"id": "moonshotai/Kimi-K2.7-Code",
|
|
107
|
+
"name": "Kimi K2.7 Code",
|
|
108
108
|
"reasoning": true,
|
|
109
|
-
"input": ["text"],
|
|
110
|
-
"contextWindow":
|
|
111
|
-
"maxTokens":
|
|
109
|
+
"input": ["text", "image"],
|
|
110
|
+
"contextWindow": 262144,
|
|
111
|
+
"maxTokens": 262144,
|
|
112
112
|
"cost": {
|
|
113
|
-
"input": 0.
|
|
114
|
-
"output":
|
|
115
|
-
"cacheRead": 0.
|
|
113
|
+
"input": 0.74,
|
|
114
|
+
"output": 3.5,
|
|
115
|
+
"cacheRead": 0.15,
|
|
116
116
|
"cacheWrite": 0
|
|
117
117
|
},
|
|
118
118
|
"compat": {
|
|
@@ -120,16 +120,33 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"id": "moonshotai/Kimi-K2.
|
|
124
|
-
"name": "Kimi K2.
|
|
123
|
+
"id": "moonshotai/Kimi-K2.6",
|
|
124
|
+
"name": "Kimi K2.6",
|
|
125
125
|
"reasoning": true,
|
|
126
126
|
"input": ["text", "image"],
|
|
127
127
|
"contextWindow": 262144,
|
|
128
128
|
"maxTokens": 262144,
|
|
129
129
|
"cost": {
|
|
130
|
-
"input": 0.
|
|
131
|
-
"output":
|
|
132
|
-
"cacheRead": 0.
|
|
130
|
+
"input": 0.75,
|
|
131
|
+
"output": 3.5,
|
|
132
|
+
"cacheRead": 0.15,
|
|
133
|
+
"cacheWrite": 0
|
|
134
|
+
},
|
|
135
|
+
"compat": {
|
|
136
|
+
"supportsUsageInStreaming": true
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B",
|
|
141
|
+
"name": "NVIDIA Nemotron 3 Ultra 550B A55B",
|
|
142
|
+
"reasoning": true,
|
|
143
|
+
"input": ["text", "image"],
|
|
144
|
+
"contextWindow": 262144,
|
|
145
|
+
"maxTokens": 262144,
|
|
146
|
+
"cost": {
|
|
147
|
+
"input": 0.5,
|
|
148
|
+
"output": 2.2,
|
|
149
|
+
"cacheRead": 0.1,
|
|
133
150
|
"cacheWrite": 0
|
|
134
151
|
},
|
|
135
152
|
"compat": {
|
|
@@ -144,8 +161,8 @@
|
|
|
144
161
|
"contextWindow": 262144,
|
|
145
162
|
"maxTokens": 262144,
|
|
146
163
|
"cost": {
|
|
147
|
-
"input": 0.
|
|
148
|
-
"output": 0.
|
|
164
|
+
"input": 0.085,
|
|
165
|
+
"output": 0.4,
|
|
149
166
|
"cacheRead": 0,
|
|
150
167
|
"cacheWrite": 0
|
|
151
168
|
},
|
|
@@ -154,16 +171,75 @@
|
|
|
154
171
|
}
|
|
155
172
|
},
|
|
156
173
|
{
|
|
157
|
-
"id": "
|
|
158
|
-
"name": "
|
|
174
|
+
"id": "deepseek-ai/DeepSeek-V3.2",
|
|
175
|
+
"name": "DeepSeek V3.2",
|
|
176
|
+
"status": "deprecated",
|
|
177
|
+
"replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
|
|
159
178
|
"reasoning": false,
|
|
160
179
|
"input": ["text"],
|
|
161
|
-
"contextWindow":
|
|
162
|
-
"maxTokens":
|
|
180
|
+
"contextWindow": 163840,
|
|
181
|
+
"maxTokens": 163840,
|
|
182
|
+
"cost": {
|
|
183
|
+
"input": 0.26,
|
|
184
|
+
"output": 0.38,
|
|
185
|
+
"cacheRead": 0.13,
|
|
186
|
+
"cacheWrite": 0
|
|
187
|
+
},
|
|
188
|
+
"compat": {
|
|
189
|
+
"supportsUsageInStreaming": true
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "zai-org/GLM-5.1",
|
|
194
|
+
"name": "GLM-5.1",
|
|
195
|
+
"status": "deprecated",
|
|
196
|
+
"replacedBy": "zai-org/GLM-5.2",
|
|
197
|
+
"reasoning": true,
|
|
198
|
+
"input": ["text"],
|
|
199
|
+
"contextWindow": 202752,
|
|
200
|
+
"maxTokens": 202752,
|
|
201
|
+
"cost": {
|
|
202
|
+
"input": 1.05,
|
|
203
|
+
"output": 3.5,
|
|
204
|
+
"cacheRead": 0.205000005,
|
|
205
|
+
"cacheWrite": 0
|
|
206
|
+
},
|
|
207
|
+
"compat": {
|
|
208
|
+
"supportsUsageInStreaming": true
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "stepfun-ai/Step-3.5-Flash",
|
|
213
|
+
"name": "Step 3.5 Flash",
|
|
214
|
+
"status": "deprecated",
|
|
215
|
+
"replacedBy": "stepfun-ai/Step-3.7-Flash",
|
|
216
|
+
"reasoning": true,
|
|
217
|
+
"input": ["text"],
|
|
218
|
+
"contextWindow": 262144,
|
|
219
|
+
"maxTokens": 262144,
|
|
163
220
|
"cost": {
|
|
164
221
|
"input": 0.1,
|
|
165
|
-
"output": 0.
|
|
166
|
-
"cacheRead": 0,
|
|
222
|
+
"output": 0.3,
|
|
223
|
+
"cacheRead": 0.02,
|
|
224
|
+
"cacheWrite": 0
|
|
225
|
+
},
|
|
226
|
+
"compat": {
|
|
227
|
+
"supportsUsageInStreaming": true
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "moonshotai/Kimi-K2.5",
|
|
232
|
+
"name": "Kimi K2.5",
|
|
233
|
+
"status": "deprecated",
|
|
234
|
+
"replacedBy": "moonshotai/Kimi-K2.6",
|
|
235
|
+
"reasoning": true,
|
|
236
|
+
"input": ["text", "image"],
|
|
237
|
+
"contextWindow": 262144,
|
|
238
|
+
"maxTokens": 262144,
|
|
239
|
+
"cost": {
|
|
240
|
+
"input": 0.45,
|
|
241
|
+
"output": 2.25,
|
|
242
|
+
"cacheRead": 0.070000002,
|
|
167
243
|
"cacheWrite": 0
|
|
168
244
|
},
|
|
169
245
|
"compat": {
|
|
@@ -196,7 +272,7 @@
|
|
|
196
272
|
],
|
|
197
273
|
"contracts": {
|
|
198
274
|
"mediaUnderstandingProviders": ["deepinfra"],
|
|
199
|
-
"
|
|
275
|
+
"embeddingProviders": ["deepinfra"],
|
|
200
276
|
"imageGenerationProviders": ["deepinfra"],
|
|
201
277
|
"speechProviders": ["deepinfra"],
|
|
202
278
|
"videoGenerationProviders": ["deepinfra"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/deepinfra-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.5",
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.5"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.5",
|
|
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.
|
|
41
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
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 };
|
package/npm-shrinkwrap.json
DELETED