@openclaw/deepinfra-provider 2026.11.2 → 2026.11.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.
@@ -1,6 +1,7 @@
1
1
  import { DEEPINFRA_BASE_URL, DEEPINFRA_IMAGE_FALLBACK_CATALOG, DEEPINFRA_TTS_FALLBACK_CATALOG } 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";
@@ -13,7 +14,6 @@ const log = createSubsystemLogger("deepinfra-models");
13
14
  const DEEPINFRA_MODELS_URL = `${DEEPINFRA_BASE_URL}/models?sort_by=openclaw&filter=with_meta`;
14
15
  const DEEPINFRA_PRICING_URL = "https://api.deepinfra.com/models/list";
15
16
  const DEEPINFRA_DEFAULT_CONTEXT_WINDOW = 128e3;
16
- const DEEPINFRA_DEFAULT_MAX_TOKENS = 8192;
17
17
  const DISCOVERY_TIMEOUT_MS = 5e3;
18
18
  const DISCOVERY_CACHE_TTL_MS = 3e5;
19
19
  function entryToSurfaceModel(entry) {
@@ -112,7 +112,7 @@ function chatSurfaceModelToModelDefinition(model) {
112
112
  input,
113
113
  ...manifestModel?.compat ? { compat: manifestModel.compat } : {},
114
114
  contextWindow: model.contextWindow ?? DEEPINFRA_DEFAULT_CONTEXT_WINDOW,
115
- maxTokens: model.maxTokens ?? DEEPINFRA_DEFAULT_MAX_TOKENS
115
+ maxTokens: model.maxTokens ?? resolveDefaultModelMaxTokens(model.contextWindow ?? DEEPINFRA_DEFAULT_CONTEXT_WINDOW)
116
116
  };
117
117
  }
118
118
  async function canDiscoverDeepInfra(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.11.2",
3
+ "version": "2026.11.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.2"
21
+ "pluginApi": ">=2026.11.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.11.2",
24
+ "openclawVersion": "2026.11.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.2"
43
+ "openclaw": ">=2026.11.3"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {