@openclaw/deepinfra-provider 2026.8.1 → 2026.8.2

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.
@@ -12,10 +12,11 @@ const DEEPINFRA_IMAGE_SIZES = [
12
12
  const MAX_DEEPINFRA_INPUT_IMAGES = 1;
13
13
  function buildDeepInfraImageGenerationProvider(options) {
14
14
  const ids = options?.imageGenModels && options.imageGenModels.length > 0 ? options.imageGenModels.map((model) => model.id) : [...DEEPINFRA_IMAGE_FALLBACK_MODELS];
15
+ const defaultModel = ids[0] ?? DEEPINFRA_IMAGE_FALLBACK_MODELS[0];
15
16
  return createOpenAiCompatibleImageGenerationProvider({
16
17
  id: "deepinfra",
17
18
  label: "DeepInfra",
18
- defaultModel: ids[0] ?? DEEPINFRA_IMAGE_FALLBACK_MODELS[0],
19
+ defaultModel,
19
20
  models: ids,
20
21
  capabilities: {
21
22
  generate: {
@@ -9,10 +9,11 @@ function buildStaticDeepInfraProvider() {
9
9
  };
10
10
  }
11
11
  async function buildDeepInfraProvider(options) {
12
+ const models = await discoverDeepInfraModels(options);
12
13
  return {
13
14
  baseUrl: DEEPINFRA_BASE_URL,
14
15
  api: "openai-completions",
15
- models: await discoverDeepInfraModels(options)
16
+ models
16
17
  };
17
18
  }
18
19
  function buildDeepInfraApiKeyCatalog(ctx) {
@@ -20,7 +20,7 @@ const DEEPINFRA_DEFAULT_CONTEXT_WINDOW = 128e3;
20
20
  const DEEPINFRA_DEFAULT_MAX_TOKENS = 8192;
21
21
  const DEEPINFRA_MODEL_CATALOG = DEEPINFRA_MANIFEST_PROVIDER.models;
22
22
  const DISCOVERY_TIMEOUT_MS = 5e3;
23
- const DISCOVERY_CACHE_TTL_MS = 300 * 1e3;
23
+ const DISCOVERY_CACHE_TTL_MS = 3e5;
24
24
  const SURFACE_FOR_TAG = {
25
25
  chat: "chat",
26
26
  vlm: "vlm",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.8.1",
3
+ "version": "2026.8.2",
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.8.1"
21
+ "pluginApi": ">=2026.8.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.1",
24
+ "openclawVersion": "2026.8.2",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.8.1"
41
+ "openclaw": ">=2026.8.2"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {