@openclaw/xiaomi-provider 2026.9.2 → 2026.9.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/index.js CHANGED
@@ -5,7 +5,7 @@ import { resolveMiMoThinkingProfile } from "./thinking.js";
5
5
  import { createMiMoThinkingWrapper } from "./stream.js";
6
6
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
7
7
  import { applyAuthProfileConfig, buildApiKeyCredential, ensureApiKeyFromOptionEnvOrPrompt, normalizeApiKeyInput, normalizeOptionalSecretInput, upsertAuthProfileWithLockOrThrow, validateApiKeyInput } from "openclaw/plugin-sdk/provider-auth-api-key";
8
- import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
8
+ import { buildOpenAICompatibleLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
9
9
  import { applyModelCompatPatch, buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
10
10
  import { PROVIDER_LABELS } from "openclaw/plugin-sdk/provider-usage";
11
11
  //#region extensions/xiaomi/index.ts
@@ -44,15 +44,17 @@ async function resolveXiaomiCatalog(params) {
44
44
  if (params.requireConfiguredProvider === true && !hasConfiguredProviderEntry(params.ctx, params.providerId)) return null;
45
45
  const explicitBaseUrl = trimConfiguredBaseUrl(params.ctx, params.providerId);
46
46
  if (params.requireBaseUrl === true && !explicitBaseUrl) return null;
47
- return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
47
+ return await buildOpenAICompatibleLiveProviderCatalog({
48
+ discoveryMode: "strict",
48
49
  providerId: params.providerId,
49
50
  providerConfig: {
50
51
  ...params.buildProvider(),
51
52
  ...explicitBaseUrl ? { baseUrl: explicitBaseUrl } : {}
52
53
  },
53
54
  apiKey: auth.apiKey,
54
- discoveryApiKey: auth.discoveryApiKey
55
- }) };
55
+ discoveryApiKey: auth.discoveryApiKey,
56
+ profileId: auth.profileId
57
+ });
56
58
  }
57
59
  function buildXiaomiKeyMismatchMessage(params) {
58
60
  const normalized = params.actualKey.trim().toLowerCase();
package/dist/onboard.js CHANGED
@@ -22,13 +22,13 @@ const { applyConfig: applyXiaomiConfig, applyProviderConfig: applyXiaomiProvider
22
22
  });
23
23
  const xiaomiTokenPlanPresetAppliers = createDefaultModelsPresetAppliers({
24
24
  primaryModelRef: XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_REF,
25
- resolveParams: () => {
25
+ resolveParams: (cfg) => {
26
26
  const defaultProvider = buildXiaomiTokenPlanProvider();
27
27
  return {
28
28
  providerId: XIAOMI_TOKEN_PLAN_PROVIDER_ID,
29
29
  api: defaultProvider.api ?? "openai-completions",
30
30
  baseUrl: defaultProvider.baseUrl,
31
- defaultModels: defaultProvider.models ?? [],
31
+ defaultModels: cfg.models?.mode === "replace" ? defaultProvider.models ?? [] : [],
32
32
  defaultModelId: XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_ID,
33
33
  aliases: (() => {
34
34
  const defaultModel = defaultProvider.models?.find((m) => m.id === XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_ID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/xiaomi-provider",
3
- "version": "2026.9.2",
3
+ "version": "2026.9.3",
4
4
  "description": "OpenClaw Xiaomi provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.7.2"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.9.2"
21
+ "pluginApi": ">=2026.9.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.2",
24
+ "openclawVersion": "2026.9.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.9.2"
41
+ "openclaw": ">=2026.9.3"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {