@openclaw/deepinfra-provider 2026.8.1-beta.2 → 2026.8.1-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.
@@ -37,18 +37,23 @@ function normalizeBaseUrlValue(value) {
37
37
  return trimmed ? trimmed : void 0;
38
38
  }
39
39
  function normalizeCompatibilityConfig({ cfg }) {
40
- const models = asObjectRecord(cfg.models);
41
- const providers = asObjectRecord(models?.providers);
42
- const provider = asObjectRecord(providers?.deepinfra);
40
+ const models = cfg.models;
41
+ const providers = models?.providers;
42
+ const provider = providers?.deepinfra;
43
43
  if (!provider) return {
44
44
  config: cfg,
45
45
  changes: []
46
46
  };
47
47
  const changes = [];
48
- const next = { ...provider };
49
- if (Object.hasOwn(next, "nativeBaseUrl")) {
50
- const legacyNative = normalizeBaseUrlValue(next.nativeBaseUrl);
51
- delete next.nativeBaseUrl;
48
+ const providerRecord = asObjectRecord(provider) ?? {};
49
+ const { nativeBaseUrl, ...providerWithoutLegacyNativeBaseUrl } = providerRecord;
50
+ const next = {
51
+ ...providerWithoutLegacyNativeBaseUrl,
52
+ baseUrl: provider.baseUrl,
53
+ models: provider.models
54
+ };
55
+ if (Object.hasOwn(providerRecord, "nativeBaseUrl")) {
56
+ const legacyNative = normalizeBaseUrlValue(nativeBaseUrl);
52
57
  if (normalizeBaseUrlValue(next.baseUrl)) changes.push(`${PROVIDER_PATH}.nativeBaseUrl: removed (baseUrl is already configured)`);
53
58
  else if (legacyNative && !isDeepInfraApiHost(legacyNative)) {
54
59
  next.baseUrl = CANONICAL_BASE_URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/deepinfra-provider",
3
- "version": "2026.8.1-beta.2",
3
+ "version": "2026.8.1-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.8.1-beta.2"
21
+ "pluginApi": ">=2026.8.1-beta.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.1-beta.2",
24
+ "openclawVersion": "2026.8.1-beta.3",
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-beta.2"
41
+ "openclaw": ">=2026.8.1-beta.3"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {