@openclaw/qianfan-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
@@ -13,7 +13,10 @@ var qianfan_default = defineSingleProviderPluginEntry({
13
13
  defaultModel: QIANFAN_DEFAULT_MODEL_REF,
14
14
  applyConfig: applyQianfanConfig
15
15
  },
16
- catalog: { liveModelDiscovery: true }
16
+ catalog: {
17
+ liveModelDiscovery: true,
18
+ discoveryMode: "strict"
19
+ }
17
20
  }
18
21
  });
19
22
  //#endregion
package/dist/onboard.js CHANGED
@@ -3,13 +3,12 @@ import { createDefaultModelsPresetAppliers } from "openclaw/plugin-sdk/provider-
3
3
  //#region extensions/qianfan/onboard.ts
4
4
  const QIANFAN_DEFAULT_MODEL_REF = `qianfan/${QIANFAN_DEFAULT_MODEL_ID}`;
5
5
  function resolveQianfanPreset(cfg) {
6
- const defaultProvider = buildQianfanProvider();
7
6
  const existingProvider = cfg.models?.providers?.qianfan;
8
7
  const existingBaseUrl = typeof existingProvider?.baseUrl === "string" ? existingProvider.baseUrl.trim() : "";
9
8
  return {
10
9
  api: typeof existingProvider?.api === "string" ? existingProvider.api : "openai-completions",
11
10
  baseUrl: existingBaseUrl || "https://qianfan.baidubce.com/v2",
12
- defaultModels: defaultProvider.models ?? []
11
+ defaultModels: cfg.models?.mode === "replace" ? buildQianfanProvider().models ?? [] : []
13
12
  };
14
13
  }
15
14
  const { applyConfig: applyQianfanConfig } = createDefaultModelsPresetAppliers({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qianfan-provider",
3
- "version": "2026.9.2",
3
+ "version": "2026.9.3",
4
4
  "description": "OpenClaw Qianfan 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.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": {