@openclaw/deepinfra-provider 2026.11.5-beta.1 → 2026.11.5-beta.3
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/.setup/{openclaw.plugin-DMCTN2sM.mjs → openclaw.plugin-5ywdmEQ1.mjs} +2 -1
- package/dist/.source-module-urls/e47411ce0a5b380d6718c7048f00db584c526b307735b67498f0ef6f921381f5.json +1 -1
- package/dist/capability-catalog.js +2 -1
- package/dist/doctor-contract-api.js +13 -7
- package/dist/embedding-adapter.js +2 -1
- package/dist/image-generation-provider.js +2 -1
- package/dist/index.js +3 -2
- package/dist/media-models.js +3 -2
- package/dist/media-understanding-provider.js +2 -1
- package/dist/onboard.js +2 -1
- package/dist/pricing-api.js +2 -1
- package/dist/provider-catalog.js +2 -1
- package/dist/provider-discovery.js +2 -1
- package/dist/provider-models.js +4 -3
- package/dist/provider-policy-api.js +2 -1
- package/dist/provider-static-catalog.js +3 -2
- package/dist/speech-provider.js +2 -1
- package/dist/surface-model-catalogs.js +2 -1
- package/dist/video-generation-provider.js +2 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/deepinfra/openclaw.plugin.json
|
|
2
2
|
var openclaw_plugin_default = {
|
|
3
3
|
id: "deepinfra",
|
|
4
4
|
categories: ["models"],
|
|
@@ -204,4 +204,5 @@ var openclaw_plugin_default = {
|
|
|
204
204
|
"properties": {}
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
+
//#endregion
|
|
207
208
|
export { openclaw_plugin_default as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/deepinfra/api.ts"},{"output":"capability-catalog.js","source":"extensions/deepinfra/capability-catalog.ts"},{"output":"doctor-contract-api.js","source":"extensions/deepinfra/doctor-contract-api.ts"},{"output":"embedding-adapter.js","source":"extensions/deepinfra/embedding-adapter.ts"},{"output":"image-generation-provider.js","source":"extensions/deepinfra/image-generation-provider.ts"},{"output":"index.js","source":"extensions/deepinfra/index.ts"},{"output":"media-models.js","source":"extensions/deepinfra/media-models.ts"},{"output":"media-understanding-provider.js","source":"extensions/deepinfra/media-understanding-provider.ts"},{"output":"onboard.js","source":"extensions/deepinfra/onboard.ts"},{"output":"pricing-api.js","source":"extensions/deepinfra/pricing-api.ts"},{"output":"provider-catalog.js","source":"extensions/deepinfra/provider-catalog.ts"},{"output":"provider-discovery.js","source":"extensions/deepinfra/provider-discovery.ts"},{"output":"provider-models.js","source":"extensions/deepinfra/provider-models.ts"},{"output":"provider-policy-api.js","source":"extensions/deepinfra/provider-policy-api.ts"},{"output":"provider-static-catalog.js","source":"extensions/deepinfra/provider-static-catalog.ts"},{"output":"speech-provider.js","source":"extensions/deepinfra/speech-provider.ts"},{"output":"surface-model-catalogs.js","source":"extensions/deepinfra/surface-model-catalogs.ts"},{"output":"video-generation-provider.js","source":"extensions/deepinfra/video-generation-provider.ts"}],"chunks":[{"output":".setup/openclaw.plugin-
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/deepinfra/api.ts"},{"output":"capability-catalog.js","source":"extensions/deepinfra/capability-catalog.ts"},{"output":"doctor-contract-api.js","source":"extensions/deepinfra/doctor-contract-api.ts"},{"output":"embedding-adapter.js","source":"extensions/deepinfra/embedding-adapter.ts"},{"output":"image-generation-provider.js","source":"extensions/deepinfra/image-generation-provider.ts"},{"output":"index.js","source":"extensions/deepinfra/index.ts"},{"output":"media-models.js","source":"extensions/deepinfra/media-models.ts"},{"output":"media-understanding-provider.js","source":"extensions/deepinfra/media-understanding-provider.ts"},{"output":"onboard.js","source":"extensions/deepinfra/onboard.ts"},{"output":"pricing-api.js","source":"extensions/deepinfra/pricing-api.ts"},{"output":"provider-catalog.js","source":"extensions/deepinfra/provider-catalog.ts"},{"output":"provider-discovery.js","source":"extensions/deepinfra/provider-discovery.ts"},{"output":"provider-models.js","source":"extensions/deepinfra/provider-models.ts"},{"output":"provider-policy-api.js","source":"extensions/deepinfra/provider-policy-api.ts"},{"output":"provider-static-catalog.js","source":"extensions/deepinfra/provider-static-catalog.ts"},{"output":"speech-provider.js","source":"extensions/deepinfra/speech-provider.ts"},{"output":"surface-model-catalogs.js","source":"extensions/deepinfra/surface-model-catalogs.ts"},{"output":"video-generation-provider.js","source":"extensions/deepinfra/video-generation-provider.ts"}],"chunks":[{"output":".setup/openclaw.plugin-5ywdmEQ1.mjs","sha256":"d886336558c66de379832139f1279b29f472f5ab0553f9cd5bfcbd8d32a29556","facadeSource":null,"sources":["extensions/deepinfra/openclaw.plugin.json"]},{"output":"api.js","sha256":"438836f453467ae64fad54a72be481c489e621e13373b8130b5a4668d1faeea5","facadeSource":"extensions/deepinfra/api.ts","sources":[]},{"output":"capability-catalog.js","sha256":"652b9dbcc865f6c6422128640d9d8b482007bf8c8925e2151daf3b6f5b340dc5","facadeSource":"extensions/deepinfra/capability-catalog.ts","sources":["extensions/deepinfra/capability-catalog.ts"]},{"output":"doctor-contract-api.js","sha256":"5624ca2cfee48bd49bfd4422c4c48fed2553a42de770ed399cdd34027423de7a","facadeSource":"extensions/deepinfra/doctor-contract-api.ts","sources":["extensions/deepinfra/doctor-contract-api.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":"embedding-adapter.js","sha256":"cf8491405afba2aabc0f9d3a086d758768d8c673e8feb52fc81f26f6a04c4eaa","facadeSource":"extensions/deepinfra/embedding-adapter.ts","sources":["extensions/deepinfra/embedding-adapter.ts"]},{"output":"image-generation-provider.js","sha256":"baf39611a1fbc1fd7f097a83ed184a88197bb44d19f5b7d8b98d91a7dcf95d86","facadeSource":"extensions/deepinfra/image-generation-provider.ts","sources":["extensions/deepinfra/image-generation-provider.ts"]},{"output":"index.js","sha256":"82e7d26f24ecde1d55cb09f0afecdc24fd4addfea92b76e0a2299f14805543d9","facadeSource":"extensions/deepinfra/index.ts","sources":["extensions/deepinfra/index.ts"]},{"output":"media-models.js","sha256":"719d553095a9c38352493e64e3080572aabca5fc01a8933b93cf769143ee9488","facadeSource":"extensions/deepinfra/media-models.ts","sources":["extensions/deepinfra/media-models.ts"]},{"output":"media-understanding-provider.js","sha256":"78e89e3a6e8f98bf463c68788b2155acaf5a67365270b45ec06222d896c2b210","facadeSource":"extensions/deepinfra/media-understanding-provider.ts","sources":["extensions/deepinfra/media-understanding-provider.ts"]},{"output":"onboard.js","sha256":"89eb2e93f3f175df13b36d0907f84ec76a99efc76e1e8f2ac9aae9c7fbd80699","facadeSource":"extensions/deepinfra/onboard.ts","sources":["extensions/deepinfra/onboard.ts"]},{"output":"pricing-api.js","sha256":"cbaa06b6effaa3974bd58136be88c19e50595847736fd9c157f70f2f0dc3e2e5","facadeSource":"extensions/deepinfra/pricing-api.ts","sources":["extensions/deepinfra/pricing-api.ts"]},{"output":"provider-catalog.js","sha256":"6b2122854ffcfbeb405e9363e757c0c37f5de85e39a752ef0bcd4a2252e79830","facadeSource":"extensions/deepinfra/provider-catalog.ts","sources":["extensions/deepinfra/provider-catalog.ts"]},{"output":"provider-discovery.js","sha256":"73391b0c584877d01c72249587fb00bd7c0fed10699446b1bd5772758fbfd343","facadeSource":"extensions/deepinfra/provider-discovery.ts","sources":["extensions/deepinfra/provider-discovery.ts"]},{"output":"provider-models.js","sha256":"adc7097ec88bbb91906e60dfd3b696488e0f9dfd4437ab0be9fecb03fa6e8a49","facadeSource":"extensions/deepinfra/provider-models.ts","sources":["extensions/deepinfra/provider-models.ts"]},{"output":"provider-policy-api.js","sha256":"090ba6961fb3d7af446553e4066aa7252279b5ed375c4e6dc56371a14fe25d27","facadeSource":"extensions/deepinfra/provider-policy-api.ts","sources":["extensions/deepinfra/provider-policy-api.ts"]},{"output":"provider-static-catalog.js","sha256":"d63150533e69b8b9e39bf4bbba64aac4736874c3dee8ee0156772caa9722d09b","facadeSource":"extensions/deepinfra/provider-static-catalog.ts","sources":["extensions/deepinfra/provider-static-catalog.ts"]},{"output":"speech-provider.js","sha256":"04cfea875ec1b5eb60a7522cdb7ee95009cf0714bdd2cde0bdba673eb50e23cd","facadeSource":"extensions/deepinfra/speech-provider.ts","sources":["extensions/deepinfra/speech-provider.ts"]},{"output":"surface-model-catalogs.js","sha256":"dfc2f57ed48dac49aea9076c0c17b4813bad86fdacbdfa5df257e0fef28922db","facadeSource":"extensions/deepinfra/surface-model-catalogs.ts","sources":["extensions/deepinfra/surface-model-catalogs.ts"]},{"output":"video-generation-provider.js","sha256":"dbe57890396d11d4ac061ad394f74fd2e6d6a40efe29690e4b9696d86691d14f","facadeSource":"extensions/deepinfra/video-generation-provider.ts","sources":["extensions/deepinfra/video-generation-provider.ts"]}],"unrenderedSources":["extensions/deepinfra/api.ts"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildDeepInfraSpeechProvider } from "./speech-provider.js";
|
|
2
|
-
|
|
2
|
+
//#region extensions/deepinfra/capability-catalog.ts
|
|
3
3
|
var capability_catalog_default = { speechProviders: [buildDeepInfraSpeechProvider()] };
|
|
4
|
+
//#endregion
|
|
4
5
|
export { capability_catalog_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
2
|
-
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-5ywdmEQ1.mjs";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,7 +24,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
24
|
return to;
|
|
25
25
|
};
|
|
26
26
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
-
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region packages/normalization-core/src/record-coerce.ts
|
|
28
29
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
29
30
|
function isRecord(value) {
|
|
30
31
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -33,7 +34,8 @@ function isRecord(value) {
|
|
|
33
34
|
function asNullableRecord(value) {
|
|
34
35
|
return isRecord(value) ? value : null;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/config/channel-config-normalization.ts
|
|
37
39
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
38
40
|
function normalizeChannelAccounts(params) {
|
|
39
41
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -109,7 +111,8 @@ function normalizeChannelConfigEntries(params) {
|
|
|
109
111
|
changes
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
|
-
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
113
116
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
114
117
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
115
118
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -179,11 +182,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
179
182
|
}
|
|
180
183
|
};
|
|
181
184
|
}
|
|
182
|
-
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
183
187
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
184
188
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
185
189
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
186
|
-
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region extensions/deepinfra/doctor-contract-api.ts
|
|
187
192
|
const PROVIDER_PATH = "models.providers.deepinfra";
|
|
188
193
|
const NATIVE_INFERENCE_PATH = "/v1/inference";
|
|
189
194
|
const OPENAI_COMPAT_PATH = "/v1/openai";
|
|
@@ -264,4 +269,5 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
264
269
|
changes
|
|
265
270
|
};
|
|
266
271
|
}
|
|
272
|
+
//#endregion
|
|
267
273
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL, DEEPINFRA_EMBED_FALLBACK_MODELS, normalizeDeepInfraModelRef } from "./media-models.js";
|
|
2
2
|
import { createRemoteEmbeddingProvider, embeddingProviderOwnsDestination, resolveRemoteEmbeddingClient, sanitizeEmbeddingCacheHeaders } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/embedding-adapter.ts
|
|
4
4
|
const DEFAULT_DEEPINFRA_EMBEDDING_MODEL = DEEPINFRA_EMBED_FALLBACK_MODELS[0];
|
|
5
5
|
const EXCLUDED_EMBEDDING_HEADERS = [
|
|
6
6
|
"authorization",
|
|
@@ -51,4 +51,5 @@ const deepinfraEmbeddingProviderAdapter = {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
+
//#endregion
|
|
54
55
|
export { deepinfraEmbeddingProviderAdapter };
|
|
@@ -2,7 +2,7 @@ import { DEEPINFRA_BASE_URL, DEEPINFRA_IMAGE_FALLBACK_MODELS, normalizeDeepInfra
|
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { bufferToBlobPart } from "openclaw/plugin-sdk/blob-runtime";
|
|
4
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",
|
|
8
8
|
"1024x1024",
|
|
@@ -83,4 +83,5 @@ function buildDeepInfraImageGenerationProvider(options) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
//#endregion
|
|
86
87
|
export { buildDeepInfraImageGenerationProvider };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-5ywdmEQ1.mjs";
|
|
2
2
|
import { deepinfraEmbeddingProviderAdapter } from "./embedding-adapter.js";
|
|
3
3
|
import { buildDeepInfraImageGenerationProvider } from "./image-generation-provider.js";
|
|
4
4
|
import { deepinfraMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
|
@@ -12,7 +12,7 @@ import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-en
|
|
|
12
12
|
import { applyModelCompatPatch, buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
13
13
|
import { createOpenRouterWrapper, isProxyReasoningUnsupported } from "openclaw/plugin-sdk/provider-stream";
|
|
14
14
|
import { applyAnthropicEphemeralCacheControlMarkers, applyCompletionsAnthropicCacheControl, createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
15
|
-
|
|
15
|
+
//#region extensions/deepinfra/index.ts
|
|
16
16
|
const PROVIDER_ID = "deepinfra";
|
|
17
17
|
var deepinfra_default = defineSingleProviderPluginEntry({
|
|
18
18
|
id: PROVIDER_ID,
|
|
@@ -77,4 +77,5 @@ var deepinfra_default = defineSingleProviderPluginEntry({
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
+
//#endregion
|
|
80
81
|
export { deepinfra_default as default };
|
package/dist/media-models.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-5ywdmEQ1.mjs";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/media-models.ts
|
|
4
4
|
const DEEPINFRA_BASE_URL = openclaw_plugin_default.modelCatalog.providers.deepinfra.baseUrl;
|
|
5
5
|
const DEFAULT_DEEPINFRA_IMAGE_SIZE = "1024x1024";
|
|
6
6
|
const DEFAULT_DEEPINFRA_TTS_VOICE = "af_bella";
|
|
@@ -40,4 +40,5 @@ function normalizeDeepInfraModelRef(model, fallback) {
|
|
|
40
40
|
function normalizeDeepInfraBaseUrl(value, fallback = DEEPINFRA_BASE_URL) {
|
|
41
41
|
return (normalizeOptionalString(value) ?? fallback).replace(/\/+$/u, "");
|
|
42
42
|
}
|
|
43
|
+
//#endregion
|
|
43
44
|
export { DEEPINFRA_BASE_URL, DEEPINFRA_EMBED_FALLBACK_MODELS, DEEPINFRA_IMAGE_FALLBACK_MODELS, DEEPINFRA_STT_FALLBACK_MODELS, DEEPINFRA_TTS_FALLBACK_MODELS, DEEPINFRA_VIDEO_ASPECT_RATIOS, DEEPINFRA_VIDEO_DURATIONS, DEEPINFRA_VIDEO_FALLBACK_MODELS, DEEPINFRA_VLM_FALLBACK_MODELS, DEFAULT_DEEPINFRA_IMAGE_SIZE, DEFAULT_DEEPINFRA_TTS_VOICE, normalizeDeepInfraBaseUrl, normalizeDeepInfraModelRef };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL, DEEPINFRA_STT_FALLBACK_MODELS, DEEPINFRA_VLM_FALLBACK_MODELS } from "./media-models.js";
|
|
2
2
|
import { describeImageWithModel, describeImagesWithModel, transcribeOpenAiCompatibleAudio } from "openclaw/plugin-sdk/media-understanding";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/media-understanding-provider.ts
|
|
4
4
|
const deepinfraMediaUnderstandingProvider = {
|
|
5
5
|
id: "deepinfra",
|
|
6
6
|
capabilities: ["image", "audio"],
|
|
@@ -21,4 +21,5 @@ const deepinfraMediaUnderstandingProvider = {
|
|
|
21
21
|
describeImage: describeImageWithModel,
|
|
22
22
|
describeImages: describeImagesWithModel
|
|
23
23
|
};
|
|
24
|
+
//#endregion
|
|
24
25
|
export { deepinfraMediaUnderstandingProvider };
|
package/dist/onboard.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DEEPINFRA_DEFAULT_MODEL_REF } from "./provider-static-catalog.js";
|
|
2
2
|
import { createAliasOnlyPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/onboard.ts
|
|
4
4
|
function applyDeepInfraConfig(cfg, modelRef = DEEPINFRA_DEFAULT_MODEL_REF) {
|
|
5
5
|
return createAliasOnlyPresetAppliers({
|
|
6
6
|
modelRef,
|
|
7
7
|
alias: "DeepInfra"
|
|
8
8
|
}).applyConfig(cfg);
|
|
9
9
|
}
|
|
10
|
+
//#endregion
|
|
10
11
|
export { applyDeepInfraConfig };
|
package/dist/pricing-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asFiniteNumberInRange, asOptionalRecord, asPositiveSafeInteger } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { normalizeModelPricingCatalog } from "openclaw/plugin-sdk/model-catalog-pricing";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/pricing-api.ts
|
|
4
4
|
function normalizeDeepInfraTokenPricing(value) {
|
|
5
5
|
const row = asOptionalRecord(value);
|
|
6
6
|
if (!row || row.type !== void 0 && row.type !== "tokens") return;
|
|
@@ -47,4 +47,5 @@ function parseDeepInfraPricingCatalog(payload) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
+
//#endregion
|
|
50
51
|
export { parseDeepInfraPricingCatalog };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DEEPINFRA_BASE_URL } from "./media-models.js";
|
|
|
2
2
|
import { discoverDeepInfraModels } from "./provider-models.js";
|
|
3
3
|
import { runLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
4
4
|
import { buildSingleProviderApiKeyCatalog } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
5
|
-
|
|
5
|
+
//#region extensions/deepinfra/provider-catalog.ts
|
|
6
6
|
async function buildDeepInfraProvider(options) {
|
|
7
7
|
const models = await discoverDeepInfraModels({
|
|
8
8
|
...options,
|
|
@@ -29,4 +29,5 @@ function buildDeepInfraApiKeyCatalog(ctx) {
|
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
+
//#endregion
|
|
32
33
|
export { buildDeepInfraApiKeyCatalog, buildDeepInfraProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildStaticDeepInfraProvider } from "./provider-static-catalog.js";
|
|
2
|
-
|
|
2
|
+
//#region extensions/deepinfra/provider-discovery.ts
|
|
3
3
|
const deepinfraProviderDiscovery = {
|
|
4
4
|
id: "deepinfra",
|
|
5
5
|
label: "DeepInfra",
|
|
@@ -17,4 +17,5 @@ const deepinfraProviderDiscovery = {
|
|
|
17
17
|
run: async () => ({ provider: buildStaticDeepInfraProvider() })
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
+
//#endregion
|
|
20
21
|
export { deepinfraProviderDiscovery as default };
|
package/dist/provider-models.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL } from "./media-models.js";
|
|
2
2
|
import { DEEPINFRA_MODEL_CATALOG, buildDeepInfraModelDefinition } from "./provider-static-catalog.js";
|
|
3
3
|
import { parseDeepInfraPricingCatalog } from "./pricing-api.js";
|
|
4
|
+
import { resolveDefaultModelMaxTokens } from "openclaw/plugin-sdk/provider-model-shared";
|
|
4
5
|
import { asPositiveSafeInteger, isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
6
|
import { fetchLiveProviderModelRows } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
6
7
|
import { getCachedLiveCatalogValue } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
@@ -9,12 +10,11 @@ import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-r
|
|
|
9
10
|
import { isProviderApiKeyConfiguredAsync } from "openclaw/plugin-sdk/provider-auth";
|
|
10
11
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
11
12
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
12
|
-
|
|
13
|
+
//#region extensions/deepinfra/provider-models.ts
|
|
13
14
|
const log = createSubsystemLogger("deepinfra-models");
|
|
14
15
|
const DEEPINFRA_MODELS_URL = `${DEEPINFRA_BASE_URL}/models?sort_by=openclaw&filter=with_meta`;
|
|
15
16
|
const DEEPINFRA_PRICING_URL = "https://api.deepinfra.com/models/list";
|
|
16
17
|
const DEEPINFRA_DEFAULT_CONTEXT_WINDOW = 128e3;
|
|
17
|
-
const DEEPINFRA_DEFAULT_MAX_TOKENS = 8192;
|
|
18
18
|
const DISCOVERY_TIMEOUT_MS = 5e3;
|
|
19
19
|
const DISCOVERY_CACHE_TTL_MS = 3e5;
|
|
20
20
|
function entryToSurfaceModel(entry) {
|
|
@@ -42,7 +42,7 @@ function chatSurfaceModelToModelDefinition(model) {
|
|
|
42
42
|
input,
|
|
43
43
|
...manifestModel?.compat ? { compat: manifestModel.compat } : {},
|
|
44
44
|
contextWindow: model.contextWindow ?? DEEPINFRA_DEFAULT_CONTEXT_WINDOW,
|
|
45
|
-
maxTokens: model.maxTokens ??
|
|
45
|
+
maxTokens: model.maxTokens ?? resolveDefaultModelMaxTokens(model.contextWindow ?? DEEPINFRA_DEFAULT_CONTEXT_WINDOW)
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
async function canDiscoverDeepInfra(options) {
|
|
@@ -159,4 +159,5 @@ async function discoverDeepInfraModels(options) {
|
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
161
|
}
|
|
162
|
+
//#endregion
|
|
162
163
|
export { discoverDeepInfraModels, discoverDeepInfraSurfaces };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-5ywdmEQ1.mjs";
|
|
2
2
|
import { DEEPINFRA_BASE_URL } from "./media-models.js";
|
|
3
3
|
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-model-metadata";
|
|
4
|
-
|
|
4
|
+
//#region extensions/deepinfra/provider-static-catalog.ts
|
|
5
5
|
const DEEPINFRA_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
|
|
6
6
|
providerId: "deepinfra",
|
|
7
7
|
catalog: openclaw_plugin_default.modelCatalog.providers.deepinfra
|
|
@@ -29,4 +29,5 @@ function buildStaticDeepInfraProvider() {
|
|
|
29
29
|
models: DEEPINFRA_MODEL_CATALOG.map(buildDeepInfraModelDefinition)
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
+
//#endregion
|
|
32
33
|
export { DEEPINFRA_DEFAULT_MODEL_REF, DEEPINFRA_MODEL_CATALOG, buildDeepInfraModelDefinition, buildStaticDeepInfraProvider };
|
package/dist/speech-provider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL, DEEPINFRA_TTS_FALLBACK_MODELS, DEFAULT_DEEPINFRA_TTS_VOICE, normalizeDeepInfraModelRef } from "./media-models.js";
|
|
2
2
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { createOpenAiCompatibleSpeechProvider } from "openclaw/plugin-sdk/speech-provider";
|
|
4
|
-
|
|
4
|
+
//#region extensions/deepinfra/speech-provider.ts
|
|
5
5
|
const DEEPINFRA_TTS_RESPONSE_FORMATS = [
|
|
6
6
|
"mp3",
|
|
7
7
|
"opus",
|
|
@@ -37,4 +37,5 @@ function buildDeepInfraSpeechProvider(options) {
|
|
|
37
37
|
}]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
+
//#endregion
|
|
40
41
|
export { buildDeepInfraSpeechProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEEPINFRA_VIDEO_ASPECT_RATIOS, DEEPINFRA_VIDEO_DURATIONS } from "./media-models.js";
|
|
2
2
|
import { discoverDeepInfraSurfaces } from "./provider-models.js";
|
|
3
|
-
|
|
3
|
+
//#region extensions/deepinfra/surface-model-catalogs.ts
|
|
4
4
|
const PROVIDER_ID = "deepinfra";
|
|
5
5
|
function buildDeepInfraVideoModelCapabilities() {
|
|
6
6
|
return {
|
|
@@ -49,4 +49,5 @@ function listDeepInfraImageGenCatalog(ctx) {
|
|
|
49
49
|
function listDeepInfraVideoGenCatalog(ctx) {
|
|
50
50
|
return listDeepInfraGenerationCatalog(ctx, "video_generation");
|
|
51
51
|
}
|
|
52
|
+
//#endregion
|
|
52
53
|
export { buildDeepInfraVideoModelCapabilities, listDeepInfraImageGenCatalog, listDeepInfraVideoGenCatalog };
|
|
@@ -6,7 +6,7 @@ import { resolveGeneratedMediaMaxBytes } from "openclaw/plugin-sdk/media-generat
|
|
|
6
6
|
import { detectMime, extensionForMime, mediaKindFromMime, normalizeMimeType } from "openclaw/plugin-sdk/media-mime";
|
|
7
7
|
import { canonicalizeBase64, estimateBase64DecodedBytes } from "openclaw/plugin-sdk/media-runtime";
|
|
8
8
|
import { createProviderOperationDeadline, pollProviderOperationJson, postJsonResponse, resolveProviderApiKeyHttpRequestConfig, resolveProviderOperationTimeoutMs, sanitizeConfiguredModelProviderRequest } from "openclaw/plugin-sdk/provider-http";
|
|
9
|
-
|
|
9
|
+
//#region extensions/deepinfra/video-generation-provider.ts
|
|
10
10
|
const DEFAULT_HTTP_TIMEOUT_MS = 6e4;
|
|
11
11
|
const POLL_INTERVAL_MS = 5e3;
|
|
12
12
|
const MAX_POLL_ATTEMPTS = 120;
|
|
@@ -142,4 +142,5 @@ function buildDeepInfraVideoGenerationProvider(options) {
|
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
+
//#endregion
|
|
145
146
|
export { buildDeepInfraVideoGenerationProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/deepinfra-provider",
|
|
3
|
-
"version": "2026.11.5-beta.
|
|
3
|
+
"version": "2026.11.5-beta.3",
|
|
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.11.5-beta.
|
|
21
|
+
"pluginApi": ">=2026.11.5-beta.3"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.11.5-beta.
|
|
24
|
+
"openclawVersion": "2026.11.5-beta.3",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.11.5-beta.
|
|
43
|
+
"openclaw": ">=2026.11.5-beta.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|