@openclaw/qianfan-provider 2026.7.2-beta.5 → 2026.7.33

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.
@@ -0,0 +1,48 @@
1
+ import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
+ //#region extensions/qianfan/openclaw.plugin.json
3
+ var modelCatalog = {
4
+ "providers": { "qianfan": {
5
+ "baseUrl": "https://qianfan.baidubce.com/v2",
6
+ "api": "openai-completions",
7
+ "models": [{
8
+ "id": "deepseek-v3.2",
9
+ "name": "DEEPSEEK V3.2",
10
+ "input": ["text"],
11
+ "reasoning": true,
12
+ "contextWindow": 98304,
13
+ "maxTokens": 32768,
14
+ "cost": {
15
+ "input": 0,
16
+ "output": 0,
17
+ "cacheRead": 0,
18
+ "cacheWrite": 0
19
+ }
20
+ }, {
21
+ "id": "ernie-5.0-thinking-preview",
22
+ "name": "ERNIE-5.0-Thinking-Preview",
23
+ "input": ["text", "image"],
24
+ "reasoning": true,
25
+ "contextWindow": 119e3,
26
+ "maxTokens": 64e3,
27
+ "cost": {
28
+ "input": 0,
29
+ "output": 0,
30
+ "cacheRead": 0,
31
+ "cacheWrite": 0
32
+ }
33
+ }]
34
+ } },
35
+ "discovery": { "qianfan": "static" }
36
+ };
37
+ //#endregion
38
+ //#region extensions/qianfan/provider-catalog.ts
39
+ const QIANFAN_BASE_URL = "https://qianfan.baidubce.com/v2";
40
+ const QIANFAN_DEFAULT_MODEL_ID = "deepseek-v3.2";
41
+ function buildQianfanProvider() {
42
+ return buildManifestModelProviderConfig({
43
+ providerId: "qianfan",
44
+ catalog: modelCatalog.providers.qianfan
45
+ });
46
+ }
47
+ //#endregion
48
+ export { QIANFAN_DEFAULT_MODEL_ID as n, buildQianfanProvider as r, QIANFAN_BASE_URL as t };
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider, t as QIANFAN_BASE_URL } from "./provider-catalog-TBOIEipS.js";
1
+ import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider, t as QIANFAN_BASE_URL } from "./.setup/provider-catalog-CFKdseZa.mjs";
2
2
  import { QIANFAN_DEFAULT_MODEL_REF } from "./onboard.js";
3
3
  export { QIANFAN_BASE_URL, QIANFAN_DEFAULT_MODEL_ID, QIANFAN_DEFAULT_MODEL_REF, buildQianfanProvider };
package/dist/index.js CHANGED
@@ -1,19 +1,25 @@
1
- import { i as openclaw_plugin_default } from "./provider-catalog-TBOIEipS.js";
1
+ import { r as buildQianfanProvider } from "./.setup/provider-catalog-CFKdseZa.mjs";
2
2
  import { QIANFAN_DEFAULT_MODEL_REF, applyQianfanConfig } from "./onboard.js";
3
3
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
4
4
  var qianfan_default = defineSingleProviderPluginEntry({
5
5
  id: "qianfan",
6
6
  name: "Qianfan Provider",
7
7
  description: "Bundled Qianfan provider plugin",
8
- manifest: openclaw_plugin_default,
9
8
  provider: {
10
9
  label: "Qianfan",
11
10
  docsPath: "/providers/qianfan",
12
- manifestAuth: {
11
+ auth: [{
12
+ methodId: "api-key",
13
+ label: "Qianfan API key",
14
+ hint: "API key",
15
+ optionKey: "qianfanApiKey",
16
+ flagName: "--qianfan-api-key",
17
+ envVar: "QIANFAN_API_KEY",
18
+ promptMessage: "Enter Qianfan API key",
13
19
  defaultModel: QIANFAN_DEFAULT_MODEL_REF,
14
- applyConfig: applyQianfanConfig
15
- },
16
- catalog: { liveModelDiscovery: true }
20
+ applyConfig: (cfg) => applyQianfanConfig(cfg)
21
+ }],
22
+ catalog: { buildProvider: buildQianfanProvider }
17
23
  }
18
24
  });
19
25
  //#endregion
package/dist/onboard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider } from "./provider-catalog-TBOIEipS.js";
1
+ import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider } from "./.setup/provider-catalog-CFKdseZa.mjs";
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}`;
@@ -29,8 +29,11 @@ const qianfanPresetAppliers = createDefaultModelsPresetAppliers({
29
29
  };
30
30
  }
31
31
  });
32
+ function applyQianfanProviderConfig(cfg) {
33
+ return qianfanPresetAppliers.applyProviderConfig(cfg);
34
+ }
32
35
  function applyQianfanConfig(cfg) {
33
36
  return qianfanPresetAppliers.applyConfig(cfg);
34
37
  }
35
38
  //#endregion
36
- export { QIANFAN_DEFAULT_MODEL_REF, applyQianfanConfig };
39
+ export { QIANFAN_DEFAULT_MODEL_REF, applyQianfanConfig, applyQianfanProviderConfig };
@@ -1,2 +1,2 @@
1
- import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider, t as QIANFAN_BASE_URL } from "./provider-catalog-TBOIEipS.js";
1
+ import { n as QIANFAN_DEFAULT_MODEL_ID, r as buildQianfanProvider, t as QIANFAN_BASE_URL } from "./.setup/provider-catalog-CFKdseZa.mjs";
2
2
  export { QIANFAN_BASE_URL, QIANFAN_DEFAULT_MODEL_ID, buildQianfanProvider };
@@ -22,150 +22,38 @@
22
22
  "api": "openai-completions",
23
23
  "models": [
24
24
  {
25
- "id": "deepseek-v4-pro",
26
- "name": "DeepSeek V4 Pro",
27
- "input": ["text"],
28
- "reasoning": true,
29
- "contextWindow": 1000000,
30
- "maxTokens": 393216,
31
- "cost": {
32
- "input": 1.771957,
33
- "output": 3.543915,
34
- "cacheRead": 0.147663,
35
- "cacheWrite": 0
36
- }
37
- },
38
- {
39
- "id": "ernie-5.1",
40
- "name": "ERNIE 5.1",
25
+ "id": "deepseek-v3.2",
26
+ "name": "DEEPSEEK V3.2",
41
27
  "input": ["text"],
42
- "reasoning": false,
43
- "contextWindow": 128000,
44
- "maxTokens": 65536,
45
- "cost": {
46
- "input": 0.590652,
47
- "output": 2.657936,
48
- "cacheRead": 0,
49
- "cacheWrite": 0,
50
- "tieredPricing": [
51
- {
52
- "input": 0.590652,
53
- "output": 2.657936,
54
- "cacheRead": 0,
55
- "cacheWrite": 0,
56
- "range": [0, 32001]
57
- },
58
- {
59
- "input": 0.885979,
60
- "output": 3.248589,
61
- "cacheRead": 0,
62
- "cacheWrite": 0,
63
- "range": [32001]
64
- }
65
- ]
66
- }
67
- },
68
- {
69
- "id": "ernie-5.0",
70
- "name": "ERNIE 5.0",
71
- "input": ["text", "image"],
72
28
  "reasoning": true,
73
- "contextWindow": 128000,
74
- "maxTokens": 65536,
29
+ "contextWindow": 98304,
30
+ "maxTokens": 32768,
75
31
  "cost": {
76
- "input": 0.885979,
77
- "output": 3.543915,
32
+ "input": 0,
33
+ "output": 0,
78
34
  "cacheRead": 0,
79
- "cacheWrite": 0,
80
- "tieredPricing": [
81
- {
82
- "input": 0.885979,
83
- "output": 3.543915,
84
- "cacheRead": 0,
85
- "cacheWrite": 0,
86
- "range": [0, 32001]
87
- },
88
- {
89
- "input": 1.476631,
90
- "output": 5.906525,
91
- "cacheRead": 0,
92
- "cacheWrite": 0,
93
- "range": [32001]
94
- }
95
- ]
35
+ "cacheWrite": 0
96
36
  }
97
37
  },
98
- {
99
- "id": "deepseek-v3.2",
100
- "name": "DeepSeek V3.2",
101
- "input": ["text"],
102
- "reasoning": false,
103
- "contextWindow": 128000,
104
- "maxTokens": 32768,
105
- "cost": {
106
- "input": 0.295326,
107
- "output": 0.442989,
108
- "cacheRead": 0.059065,
109
- "cacheWrite": 0,
110
- "tieredPricing": [
111
- {
112
- "input": 0.295326,
113
- "output": 0.442989,
114
- "cacheRead": 0.059065,
115
- "cacheWrite": 0,
116
- "range": [0, 32001]
117
- },
118
- {
119
- "input": 0.590652,
120
- "output": 0.885979,
121
- "cacheRead": 0.059065,
122
- "cacheWrite": 0,
123
- "range": [32001]
124
- }
125
- ]
126
- },
127
- "status": "deprecated",
128
- "statusReason": "Still available by exact reference; use deepseek-v4-pro for new Qianfan setups.",
129
- "replacedBy": "deepseek-v4-pro"
130
- },
131
38
  {
132
39
  "id": "ernie-5.0-thinking-preview",
133
40
  "name": "ERNIE-5.0-Thinking-Preview",
134
41
  "input": ["text", "image"],
135
42
  "reasoning": true,
136
- "contextWindow": 128000,
137
- "maxTokens": 65536,
43
+ "contextWindow": 119000,
44
+ "maxTokens": 64000,
138
45
  "cost": {
139
- "input": 0.885979,
140
- "output": 3.543915,
46
+ "input": 0,
47
+ "output": 0,
141
48
  "cacheRead": 0,
142
- "cacheWrite": 0,
143
- "tieredPricing": [
144
- {
145
- "input": 0.885979,
146
- "output": 3.543915,
147
- "cacheRead": 0,
148
- "cacheWrite": 0,
149
- "range": [0, 32001]
150
- },
151
- {
152
- "input": 1.476631,
153
- "output": 5.906525,
154
- "cacheRead": 0,
155
- "cacheWrite": 0,
156
- "range": [32001]
157
- }
158
- ]
159
- },
160
- "status": "deprecated",
161
- "statusReason": "Still available by exact reference; use the stable ernie-5.0 id for new Qianfan setups.",
162
- "replacedBy": "ernie-5.0"
49
+ "cacheWrite": 0
50
+ }
163
51
  }
164
52
  ]
165
53
  }
166
54
  },
167
55
  "discovery": {
168
- "qianfan": "refreshable"
56
+ "qianfan": "static"
169
57
  }
170
58
  },
171
59
  "providerAuthChoices": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qianfan-provider",
3
- "version": "2026.7.2-beta.5",
3
+ "version": "2026.7.33",
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.7.2-beta.5"
21
+ "pluginApi": ">=2026.7.33"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.5",
24
+ "openclawVersion": "2026.7.33",
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.7.2-beta.5"
41
+ "openclaw": ">=2026.7.33"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {
@@ -1,182 +0,0 @@
1
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
- //#region extensions/qianfan/openclaw.plugin.json
3
- var openclaw_plugin_default = {
4
- id: "qianfan",
5
- icon: "https://cdn.simpleicons.org/baidu",
6
- activation: { "onStartup": false },
7
- enabledByDefault: true,
8
- providers: ["qianfan"],
9
- setup: { "providers": [{
10
- "id": "qianfan",
11
- "authMethods": ["api-key"],
12
- "envVars": ["QIANFAN_API_KEY"]
13
- }] },
14
- modelCatalog: {
15
- "providers": { "qianfan": {
16
- "baseUrl": "https://qianfan.baidubce.com/v2",
17
- "api": "openai-completions",
18
- "models": [
19
- {
20
- "id": "deepseek-v4-pro",
21
- "name": "DeepSeek V4 Pro",
22
- "input": ["text"],
23
- "reasoning": true,
24
- "contextWindow": 1e6,
25
- "maxTokens": 393216,
26
- "cost": {
27
- "input": 1.771957,
28
- "output": 3.543915,
29
- "cacheRead": .147663,
30
- "cacheWrite": 0
31
- }
32
- },
33
- {
34
- "id": "ernie-5.1",
35
- "name": "ERNIE 5.1",
36
- "input": ["text"],
37
- "reasoning": false,
38
- "contextWindow": 128e3,
39
- "maxTokens": 65536,
40
- "cost": {
41
- "input": .590652,
42
- "output": 2.657936,
43
- "cacheRead": 0,
44
- "cacheWrite": 0,
45
- "tieredPricing": [{
46
- "input": .590652,
47
- "output": 2.657936,
48
- "cacheRead": 0,
49
- "cacheWrite": 0,
50
- "range": [0, 32001]
51
- }, {
52
- "input": .885979,
53
- "output": 3.248589,
54
- "cacheRead": 0,
55
- "cacheWrite": 0,
56
- "range": [32001]
57
- }]
58
- }
59
- },
60
- {
61
- "id": "ernie-5.0",
62
- "name": "ERNIE 5.0",
63
- "input": ["text", "image"],
64
- "reasoning": true,
65
- "contextWindow": 128e3,
66
- "maxTokens": 65536,
67
- "cost": {
68
- "input": .885979,
69
- "output": 3.543915,
70
- "cacheRead": 0,
71
- "cacheWrite": 0,
72
- "tieredPricing": [{
73
- "input": .885979,
74
- "output": 3.543915,
75
- "cacheRead": 0,
76
- "cacheWrite": 0,
77
- "range": [0, 32001]
78
- }, {
79
- "input": 1.476631,
80
- "output": 5.906525,
81
- "cacheRead": 0,
82
- "cacheWrite": 0,
83
- "range": [32001]
84
- }]
85
- }
86
- },
87
- {
88
- "id": "deepseek-v3.2",
89
- "name": "DeepSeek V3.2",
90
- "input": ["text"],
91
- "reasoning": false,
92
- "contextWindow": 128e3,
93
- "maxTokens": 32768,
94
- "cost": {
95
- "input": .295326,
96
- "output": .442989,
97
- "cacheRead": .059065,
98
- "cacheWrite": 0,
99
- "tieredPricing": [{
100
- "input": .295326,
101
- "output": .442989,
102
- "cacheRead": .059065,
103
- "cacheWrite": 0,
104
- "range": [0, 32001]
105
- }, {
106
- "input": .590652,
107
- "output": .885979,
108
- "cacheRead": .059065,
109
- "cacheWrite": 0,
110
- "range": [32001]
111
- }]
112
- },
113
- "status": "deprecated",
114
- "statusReason": "Still available by exact reference; use deepseek-v4-pro for new Qianfan setups.",
115
- "replacedBy": "deepseek-v4-pro"
116
- },
117
- {
118
- "id": "ernie-5.0-thinking-preview",
119
- "name": "ERNIE-5.0-Thinking-Preview",
120
- "input": ["text", "image"],
121
- "reasoning": true,
122
- "contextWindow": 128e3,
123
- "maxTokens": 65536,
124
- "cost": {
125
- "input": .885979,
126
- "output": 3.543915,
127
- "cacheRead": 0,
128
- "cacheWrite": 0,
129
- "tieredPricing": [{
130
- "input": .885979,
131
- "output": 3.543915,
132
- "cacheRead": 0,
133
- "cacheWrite": 0,
134
- "range": [0, 32001]
135
- }, {
136
- "input": 1.476631,
137
- "output": 5.906525,
138
- "cacheRead": 0,
139
- "cacheWrite": 0,
140
- "range": [32001]
141
- }]
142
- },
143
- "status": "deprecated",
144
- "statusReason": "Still available by exact reference; use the stable ernie-5.0 id for new Qianfan setups.",
145
- "replacedBy": "ernie-5.0"
146
- }
147
- ]
148
- } },
149
- "discovery": { "qianfan": "refreshable" }
150
- },
151
- providerAuthChoices: [{
152
- "provider": "qianfan",
153
- "method": "api-key",
154
- "choiceId": "qianfan-api-key",
155
- "appGuidedSecret": true,
156
- "choiceLabel": "Qianfan API key",
157
- "groupId": "qianfan",
158
- "groupLabel": "Qianfan",
159
- "groupHint": "API key",
160
- "optionKey": "qianfanApiKey",
161
- "cliFlag": "--qianfan-api-key",
162
- "cliOption": "--qianfan-api-key <key>",
163
- "cliDescription": "QIANFAN API key"
164
- }],
165
- configSchema: {
166
- "type": "object",
167
- "additionalProperties": false,
168
- "properties": {}
169
- }
170
- };
171
- //#endregion
172
- //#region extensions/qianfan/provider-catalog.ts
173
- const QIANFAN_BASE_URL = "https://qianfan.baidubce.com/v2";
174
- const QIANFAN_DEFAULT_MODEL_ID = "deepseek-v4-pro";
175
- function buildQianfanProvider() {
176
- return buildManifestModelProviderConfig({
177
- providerId: "qianfan",
178
- catalog: openclaw_plugin_default.modelCatalog.providers.qianfan
179
- });
180
- }
181
- //#endregion
182
- export { openclaw_plugin_default as i, QIANFAN_DEFAULT_MODEL_ID as n, buildQianfanProvider as r, QIANFAN_BASE_URL as t };