@openclaw/deepinfra-provider 2026.10.10-beta.5 → 2026.11.1
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-5ywdmEQ1.mjs → openclaw.plugin-DMCTN2sM.mjs} +1 -2
- package/dist/.source-module-urls/71572d2835c363d07e5d187f2ff7fea2022daa8218b56741ea92229bfa58e619.json +1 -1
- package/dist/cache-wrapper.js +1 -2
- package/dist/capability-catalog.js +1 -2
- package/dist/doctor-contract-api.js +7 -13
- package/dist/embedding-adapter.js +1 -2
- package/dist/embedding-provider.js +1 -2
- package/dist/image-generation-provider.js +1 -2
- package/dist/index.js +2 -3
- package/dist/media-models.js +2 -3
- package/dist/media-understanding-provider.js +1 -2
- package/dist/onboard.js +1 -2
- package/dist/pricing-api.js +1 -2
- package/dist/provider-catalog.js +1 -2
- package/dist/provider-discovery.js +1 -2
- package/dist/provider-models.js +1 -2
- package/dist/provider-policy-api.js +1 -2
- package/dist/provider-static-catalog.js +2 -3
- package/dist/speech-provider.js +1 -2
- package/dist/surface-model-catalogs.js +1 -2
- package/dist/video-generation-provider.js +1 -2
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// extensions/deepinfra/openclaw.plugin.json
|
|
2
2
|
var openclaw_plugin_default = {
|
|
3
3
|
id: "deepinfra",
|
|
4
4
|
categories: ["models"],
|
|
@@ -204,5 +204,4 @@ var openclaw_plugin_default = {
|
|
|
204
204
|
"properties": {}
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
//#endregion
|
|
208
207
|
export { openclaw_plugin_default as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/deepinfra/api.ts"},{"output":"cache-wrapper.js","source":"extensions/deepinfra/cache-wrapper.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":"embedding-provider.js","source":"extensions/deepinfra/embedding-provider.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":"cache-wrapper.js","source":"extensions/deepinfra/cache-wrapper.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":"embedding-provider.js","source":"extensions/deepinfra/embedding-provider.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-DMCTN2sM.mjs","sha256":"53d0f886f6e92dad4c9f8b0eb8a8c3a5774a9eafb900bce282b708a2b17e217b","facadeSource":null,"sources":["extensions/deepinfra/openclaw.plugin.json"]},{"output":"api.js","sha256":"438836f453467ae64fad54a72be481c489e621e13373b8130b5a4668d1faeea5","facadeSource":"extensions/deepinfra/api.ts","sources":[]},{"output":"cache-wrapper.js","sha256":"f00022a996f0bf32b164045b068e2630267e223a1ad7eb9fdfb2a548d81f8f61","facadeSource":"extensions/deepinfra/cache-wrapper.ts","sources":["extensions/deepinfra/cache-wrapper.ts"]},{"output":"capability-catalog.js","sha256":"634d2237ba508a9808231c18bdd954e2d62d62bfe2b1e42027922f1e80f0003b","facadeSource":"extensions/deepinfra/capability-catalog.ts","sources":["extensions/deepinfra/capability-catalog.ts"]},{"output":"doctor-contract-api.js","sha256":"b7279947e9bdf6e16777182b104f8368cc715932bfefb5d79dc18591c980e4b7","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":"0a2a19a7b0c94bda75832bbbd5d5d192990450a174502b42dfaff86f81216e64","facadeSource":"extensions/deepinfra/embedding-adapter.ts","sources":["extensions/deepinfra/embedding-adapter.ts"]},{"output":"embedding-provider.js","sha256":"e3213e316a960e69249769b2500543ac457c2e84a0c833909871c0f71cf6a285","facadeSource":"extensions/deepinfra/embedding-provider.ts","sources":["extensions/deepinfra/embedding-provider.ts"]},{"output":"image-generation-provider.js","sha256":"962bd65a9b6bccce47f2477d41d39a6ef5141bda6fa5d51bb615b93c52690766","facadeSource":"extensions/deepinfra/image-generation-provider.ts","sources":["extensions/deepinfra/image-generation-provider.ts"]},{"output":"index.js","sha256":"5cb67fb83a9f8eae056f48e0b40586b3a571d47ba621b66422af62d2a6762362","facadeSource":"extensions/deepinfra/index.ts","sources":["extensions/deepinfra/index.ts"]},{"output":"media-models.js","sha256":"13c337453b7578c9e9663b2c814eaba818109cf4787a770a2826e85389c31f6f","facadeSource":"extensions/deepinfra/media-models.ts","sources":["extensions/deepinfra/media-models.ts"]},{"output":"media-understanding-provider.js","sha256":"61d01e88c779d6e4f146f9b6a0a2dd75783304bc2e6266292082957d75ea438e","facadeSource":"extensions/deepinfra/media-understanding-provider.ts","sources":["extensions/deepinfra/media-understanding-provider.ts"]},{"output":"onboard.js","sha256":"0ab163225d2b6fce8820e7f33445d81bc06497f9c449a16a2a6f92c476d9e6f0","facadeSource":"extensions/deepinfra/onboard.ts","sources":["extensions/deepinfra/onboard.ts"]},{"output":"pricing-api.js","sha256":"6ef309604845da991d8bb83420fa1297d706d3df0bfee01b8989eee4f1603410","facadeSource":"extensions/deepinfra/pricing-api.ts","sources":["extensions/deepinfra/pricing-api.ts"]},{"output":"provider-catalog.js","sha256":"c3e6141c00be6baa211f66041298e98339667b6de016d31e84f2bd53233ec285","facadeSource":"extensions/deepinfra/provider-catalog.ts","sources":["extensions/deepinfra/provider-catalog.ts"]},{"output":"provider-discovery.js","sha256":"89311266003d0ace1f64f2c50e5071484621d677d10f73949bccae16c0d633fd","facadeSource":"extensions/deepinfra/provider-discovery.ts","sources":["extensions/deepinfra/provider-discovery.ts"]},{"output":"provider-models.js","sha256":"59e5dd9e8b9ec4ce9c34eb3dd0ab43237d7bcc81a55b3a14e40a401952732d15","facadeSource":"extensions/deepinfra/provider-models.ts","sources":["extensions/deepinfra/provider-models.ts"]},{"output":"provider-policy-api.js","sha256":"80fa44885d8a7b89b092aae1e55a43a9fab85552da7e572e6689b517f8f2da4a","facadeSource":"extensions/deepinfra/provider-policy-api.ts","sources":["extensions/deepinfra/provider-policy-api.ts"]},{"output":"provider-static-catalog.js","sha256":"fa0cb267b8cf0ac776f5add95e6bfc2fc99c67442dc4a7e62f7d0e8a08efefc4","facadeSource":"extensions/deepinfra/provider-static-catalog.ts","sources":["extensions/deepinfra/provider-static-catalog.ts"]},{"output":"speech-provider.js","sha256":"1851abe96b6ee784ccbc4325f2da61175b67e3369884d1ec8058f492e89ba83d","facadeSource":"extensions/deepinfra/speech-provider.ts","sources":["extensions/deepinfra/speech-provider.ts"]},{"output":"surface-model-catalogs.js","sha256":"73bd61320667eb7a13fd28d388c5ebb8859fb669bc09ea266cb2f78517441454","facadeSource":"extensions/deepinfra/surface-model-catalogs.ts","sources":["extensions/deepinfra/surface-model-catalogs.ts"]},{"output":"video-generation-provider.js","sha256":"dbff62fb3338e87ed72eb98c9fdf100dbdd5303e8b5fcb72e08c1ea76435ccf0","facadeSource":"extensions/deepinfra/video-generation-provider.ts","sources":["extensions/deepinfra/video-generation-provider.ts"]}],"unrenderedSources":["extensions/deepinfra/api.ts"]}
|
package/dist/cache-wrapper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { applyAnthropicEphemeralCacheControlMarkers, applyCompletionsAnthropicCacheControl, createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
2
|
-
|
|
2
|
+
// extensions/deepinfra/cache-wrapper.ts
|
|
3
3
|
function createDeepInfraAnthropicCacheWrapper(baseStreamFn, extraParams) {
|
|
4
4
|
return (model, context, options) => {
|
|
5
5
|
if (!model.id.toLowerCase().startsWith("anthropic/")) return baseStreamFn(model, context, options);
|
|
@@ -15,5 +15,4 @@ function createDeepInfraAnthropicCacheWrapper(baseStreamFn, extraParams) {
|
|
|
15
15
|
} : options);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { createDeepInfraAnthropicCacheWrapper };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { buildDeepInfraSpeechProvider } from "./speech-provider.js";
|
|
2
|
-
|
|
2
|
+
// extensions/deepinfra/capability-catalog.ts
|
|
3
3
|
var capability_catalog_default = { speechProviders: [buildDeepInfraSpeechProvider()] };
|
|
4
|
-
//#endregion
|
|
5
4
|
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-DMCTN2sM.mjs";
|
|
2
|
+
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -24,8 +24,7 @@ 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
|
-
|
|
28
|
-
//#region packages/normalization-core/src/record-coerce.ts
|
|
27
|
+
// packages/normalization-core/src/record-coerce.ts
|
|
29
28
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
30
29
|
function isRecord(value) {
|
|
31
30
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -34,8 +33,7 @@ function isRecord(value) {
|
|
|
34
33
|
function asNullableRecord(value) {
|
|
35
34
|
return isRecord(value) ? value : null;
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
//#region src/config/channel-config-normalization.ts
|
|
36
|
+
// src/config/channel-config-normalization.ts
|
|
39
37
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
40
38
|
function normalizeChannelAccounts(params) {
|
|
41
39
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -111,8 +109,7 @@ function normalizeChannelConfigEntries(params) {
|
|
|
111
109
|
changes
|
|
112
110
|
};
|
|
113
111
|
}
|
|
114
|
-
|
|
115
|
-
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
112
|
+
// src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
116
113
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
117
114
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
118
115
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -182,13 +179,11 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
182
179
|
}
|
|
183
180
|
};
|
|
184
181
|
}
|
|
185
|
-
|
|
186
|
-
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
182
|
+
// \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
187
183
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
188
184
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
189
185
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
190
|
-
|
|
191
|
-
//#region extensions/deepinfra/doctor-contract-api.ts
|
|
186
|
+
// extensions/deepinfra/doctor-contract-api.ts
|
|
192
187
|
const PROVIDER_PATH = "models.providers.deepinfra";
|
|
193
188
|
const NATIVE_INFERENCE_PATH = "/v1/inference";
|
|
194
189
|
const OPENAI_COMPAT_PATH = "/v1/openai";
|
|
@@ -269,5 +264,4 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
269
264
|
changes
|
|
270
265
|
};
|
|
271
266
|
}
|
|
272
|
-
//#endregion
|
|
273
267
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL } from "./media-models.js";
|
|
2
2
|
import { DEFAULT_DEEPINFRA_EMBEDDING_MODEL, createDeepInfraEmbeddingProvider } from "./embedding-provider.js";
|
|
3
3
|
import { embeddingProviderOwnsDestination, sanitizeEmbeddingCacheHeaders } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
|
|
4
|
-
|
|
4
|
+
// extensions/deepinfra/embedding-adapter.ts
|
|
5
5
|
const EXCLUDED_EMBEDDING_HEADERS = [
|
|
6
6
|
"authorization",
|
|
7
7
|
"content-type",
|
|
@@ -44,5 +44,4 @@ function buildDeepInfraEmbeddingAdapter(options) {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
const deepinfraEmbeddingProviderAdapter = buildDeepInfraEmbeddingAdapter();
|
|
47
|
-
//#endregion
|
|
48
47
|
export { buildDeepInfraEmbeddingAdapter, deepinfraEmbeddingProviderAdapter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEEPINFRA_BASE_URL, DEEPINFRA_EMBED_FALLBACK_MODELS, normalizeDeepInfraModelRef } from "./media-models.js";
|
|
2
2
|
import { createRemoteEmbeddingProvider, resolveRemoteEmbeddingClient } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
|
|
3
|
-
|
|
3
|
+
// extensions/deepinfra/embedding-provider.ts
|
|
4
4
|
const DEFAULT_DEEPINFRA_EMBEDDING_MODEL = DEEPINFRA_EMBED_FALLBACK_MODELS[0];
|
|
5
5
|
async function createDeepInfraEmbeddingProvider(options) {
|
|
6
6
|
const defaultModel = options.defaultModel ?? DEFAULT_DEEPINFRA_EMBEDDING_MODEL;
|
|
@@ -23,5 +23,4 @@ async function createDeepInfraEmbeddingProvider(options) {
|
|
|
23
23
|
client
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { DEFAULT_DEEPINFRA_EMBEDDING_MODEL, createDeepInfraEmbeddingProvider };
|
|
@@ -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
|
+
// extensions/deepinfra/image-generation-provider.ts
|
|
6
6
|
const DEEPINFRA_IMAGE_SIZES = [
|
|
7
7
|
"512x512",
|
|
8
8
|
"1024x1024",
|
|
@@ -83,5 +83,4 @@ function buildDeepInfraImageGenerationProvider(options) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { buildDeepInfraImageGenerationProvider };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createDeepInfraAnthropicCacheWrapper } from "./cache-wrapper.js";
|
|
2
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
2
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-DMCTN2sM.mjs";
|
|
3
3
|
import { buildDeepInfraEmbeddingAdapter } from "./embedding-adapter.js";
|
|
4
4
|
import { buildDeepInfraImageGenerationProvider } from "./image-generation-provider.js";
|
|
5
5
|
import { buildDeepInfraMediaUnderstandingProvider } from "./media-understanding-provider.js";
|
|
@@ -13,7 +13,7 @@ import { buildDeepInfraVideoGenerationProvider } from "./video-generation-provid
|
|
|
13
13
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
14
14
|
import { applyModelCompatPatch, buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
15
15
|
import { createOpenRouterWrapper, isProxyReasoningUnsupported } from "openclaw/plugin-sdk/provider-stream";
|
|
16
|
-
|
|
16
|
+
// extensions/deepinfra/index.ts
|
|
17
17
|
const PROVIDER_ID = "deepinfra";
|
|
18
18
|
var deepinfra_default = defineSingleProviderPluginEntry({
|
|
19
19
|
id: PROVIDER_ID,
|
|
@@ -68,5 +68,4 @@ var deepinfra_default = defineSingleProviderPluginEntry({
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
//#endregion
|
|
72
71
|
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-DMCTN2sM.mjs";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
3
|
+
// 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";
|
|
@@ -86,5 +86,4 @@ function normalizeDeepInfraModelRef(model, fallback) {
|
|
|
86
86
|
function normalizeDeepInfraBaseUrl(value, fallback = DEEPINFRA_BASE_URL) {
|
|
87
87
|
return (normalizeOptionalString(value) ?? fallback).replace(/\/+$/u, "");
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { DEEPINFRA_BASE_URL, DEEPINFRA_EMBED_FALLBACK_MODELS, DEEPINFRA_IMAGE_FALLBACK_CATALOG, DEEPINFRA_IMAGE_FALLBACK_MODELS, DEEPINFRA_STT_FALLBACK_MODELS, DEEPINFRA_TTS_FALLBACK_CATALOG, 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
|
+
// extensions/deepinfra/media-understanding-provider.ts
|
|
4
4
|
function buildDeepInfraMediaUnderstandingProvider(options) {
|
|
5
5
|
return {
|
|
6
6
|
id: "deepinfra",
|
|
@@ -24,5 +24,4 @@ function buildDeepInfraMediaUnderstandingProvider(options) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
const deepinfraMediaUnderstandingProvider = buildDeepInfraMediaUnderstandingProvider();
|
|
27
|
-
//#endregion
|
|
28
27
|
export { buildDeepInfraMediaUnderstandingProvider, deepinfraMediaUnderstandingProvider };
|
package/dist/onboard.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DEEPINFRA_DEFAULT_MODEL_REF } from "./provider-static-catalog.js";
|
|
2
2
|
import { createAliasOnlyPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
-
|
|
3
|
+
// 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
|
|
11
10
|
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
|
+
// 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,5 +47,4 @@ function parseDeepInfraPricingCatalog(payload) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
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
|
+
// extensions/deepinfra/provider-catalog.ts
|
|
6
6
|
async function buildDeepInfraProvider(options) {
|
|
7
7
|
const models = await discoverDeepInfraModels({
|
|
8
8
|
...options,
|
|
@@ -29,5 +29,4 @@ function buildDeepInfraApiKeyCatalog(ctx) {
|
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { buildDeepInfraApiKeyCatalog, buildDeepInfraProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildStaticDeepInfraProvider } from "./provider-static-catalog.js";
|
|
2
|
-
|
|
2
|
+
// extensions/deepinfra/provider-discovery.ts
|
|
3
3
|
const deepinfraProviderDiscovery = {
|
|
4
4
|
id: "deepinfra",
|
|
5
5
|
label: "DeepInfra",
|
|
@@ -17,5 +17,4 @@ const deepinfraProviderDiscovery = {
|
|
|
17
17
|
run: async () => ({ provider: buildStaticDeepInfraProvider() })
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { deepinfraProviderDiscovery as default };
|
package/dist/provider-models.js
CHANGED
|
@@ -8,7 +8,7 @@ import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-r
|
|
|
8
8
|
import { isProviderApiKeyConfiguredAsync } from "openclaw/plugin-sdk/provider-auth";
|
|
9
9
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
10
10
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
11
|
-
|
|
11
|
+
// extensions/deepinfra/provider-models.ts
|
|
12
12
|
const log = createSubsystemLogger("deepinfra-models");
|
|
13
13
|
const DEEPINFRA_MODELS_URL = `${DEEPINFRA_BASE_URL}/models?sort_by=openclaw&filter=with_meta`;
|
|
14
14
|
const DEEPINFRA_PRICING_URL = "https://api.deepinfra.com/models/list";
|
|
@@ -216,5 +216,4 @@ async function discoverDeepInfraModels(options) {
|
|
|
216
216
|
}
|
|
217
217
|
}));
|
|
218
218
|
}
|
|
219
|
-
//#endregion
|
|
220
219
|
export { discoverDeepInfraModels, discoverDeepInfraSurfaces, getDeepInfraSurfaceFallbackCatalog };
|
|
@@ -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-DMCTN2sM.mjs";
|
|
2
2
|
import { DEEPINFRA_BASE_URL } from "./media-models.js";
|
|
3
3
|
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-model-metadata";
|
|
4
|
-
|
|
4
|
+
// 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,5 +29,4 @@ function buildStaticDeepInfraProvider() {
|
|
|
29
29
|
models: DEEPINFRA_MODEL_CATALOG.map(buildDeepInfraModelDefinition)
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
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_CATALOG, 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
|
+
// extensions/deepinfra/speech-provider.ts
|
|
5
5
|
const DEEPINFRA_TTS_RESPONSE_FORMATS = [
|
|
6
6
|
"mp3",
|
|
7
7
|
"opus",
|
|
@@ -37,5 +37,4 @@ function buildDeepInfraSpeechProvider(options) {
|
|
|
37
37
|
}]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
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
|
+
// extensions/deepinfra/surface-model-catalogs.ts
|
|
4
4
|
const PROVIDER_ID = "deepinfra";
|
|
5
5
|
function buildDeepInfraVideoModelCapabilities() {
|
|
6
6
|
return {
|
|
@@ -54,5 +54,4 @@ async function resolveDeepInfraVideoModelCapabilities(ctx) {
|
|
|
54
54
|
const catalog = await discoverDeepInfraSurfaces({ env: process.env });
|
|
55
55
|
return catalog.videoGen.find((m) => m.id === normalized) ?? catalog.videoGen.find((m) => m.id === rawId) ? buildDeepInfraVideoModelCapabilities() : void 0;
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { buildDeepInfraVideoModelCapabilities, listDeepInfraImageGenCatalog, listDeepInfraVideoGenCatalog, resolveDeepInfraVideoModelCapabilities };
|
|
@@ -7,7 +7,7 @@ import { detectMime, extensionForMime, mediaKindFromMime, normalizeMimeType } fr
|
|
|
7
7
|
import { canonicalizeBase64, estimateBase64DecodedBytes } from "openclaw/plugin-sdk/media-runtime";
|
|
8
8
|
import { resolveApiKeyForProvider } from "openclaw/plugin-sdk/provider-auth-runtime";
|
|
9
9
|
import { assertOkOrThrowHttpError, createProviderOperationDeadline, pollProviderOperationJson, postJsonRequest, readProviderJsonResponse, resolveProviderHttpRequestConfig, resolveProviderOperationTimeoutMs, sanitizeConfiguredModelProviderRequest } from "openclaw/plugin-sdk/provider-http";
|
|
10
|
-
|
|
10
|
+
// extensions/deepinfra/video-generation-provider.ts
|
|
11
11
|
const DEFAULT_HTTP_TIMEOUT_MS = 6e4;
|
|
12
12
|
const POLL_INTERVAL_MS = 5e3;
|
|
13
13
|
const MAX_POLL_ATTEMPTS = 120;
|
|
@@ -181,5 +181,4 @@ function buildDeepInfraVideoGenerationProvider(options) {
|
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
//#endregion
|
|
185
184
|
export { buildDeepInfraVideoGenerationProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/deepinfra-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.1",
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.11.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.11.1",
|
|
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.
|
|
43
|
+
"openclaw": ">=2026.11.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|