@openclaw/qianfan-provider 2026.9.6 → 2026.9.8

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/assets/icon.png CHANGED
Binary file
package/dist/onboard.js CHANGED
@@ -2,24 +2,16 @@ import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider } from "./.set
2
2
  import { createDefaultModelsPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
3
  //#region extensions/qianfan/onboard.ts
4
4
  const QIANFAN_DEFAULT_MODEL_REF = `qianfan/${QIANFAN_DEFAULT_MODEL_ID}`;
5
- function resolveQianfanPreset(cfg) {
6
- const existingProvider = cfg.models?.providers?.qianfan;
7
- const existingBaseUrl = typeof existingProvider?.baseUrl === "string" ? existingProvider.baseUrl.trim() : "";
8
- return {
9
- api: typeof existingProvider?.api === "string" ? existingProvider.api : "openai-completions",
10
- baseUrl: existingBaseUrl || "https://qianfan.baidubce.com/v2",
11
- defaultModels: cfg.models?.mode === "replace" ? buildQianfanProvider().models ?? [] : []
12
- };
13
- }
14
5
  const { applyConfig: applyQianfanConfig } = createDefaultModelsPresetAppliers({
15
6
  primaryModelRef: QIANFAN_DEFAULT_MODEL_REF,
16
7
  resolveParams: (cfg) => {
17
- const preset = resolveQianfanPreset(cfg);
8
+ const existingProvider = cfg.models?.providers?.qianfan;
9
+ const existingBaseUrl = typeof existingProvider?.baseUrl === "string" ? existingProvider.baseUrl.trim() : "";
18
10
  return {
19
11
  providerId: "qianfan",
20
- api: preset.api,
21
- baseUrl: preset.baseUrl,
22
- defaultModels: preset.defaultModels,
12
+ api: typeof existingProvider?.api === "string" ? existingProvider.api : "openai-completions",
13
+ baseUrl: existingBaseUrl || "https://qianfan.baidubce.com/v2",
14
+ defaultModels: cfg.models?.mode === "replace" ? buildQianfanProvider().models : [],
23
15
  defaultModelId: QIANFAN_DEFAULT_MODEL_ID,
24
16
  aliases: [{
25
17
  modelRef: QIANFAN_DEFAULT_MODEL_REF,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qianfan-provider",
3
- "version": "2026.9.6",
3
+ "version": "2026.9.8",
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.6"
21
+ "pluginApi": ">=2026.9.8"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.6",
24
+ "openclawVersion": "2026.9.8",
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.9.6"
43
+ "openclaw": ">=2026.9.8"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {