@openclaw/qwen-provider 2026.7.2-beta.3 → 2026.7.2-beta.4
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 +23 -14
- package/npm-shrinkwrap.json +2 -2
- package/openclaw.plugin.json +2 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { buildQwenMediaUnderstandingProvider } from "./media-understanding-provi
|
|
|
6
6
|
import { applyQwenConfig, applyQwenConfigCn, applyQwenStandardConfig, applyQwenStandardConfigCn, applyQwenTokenPlanConfig } from "./onboard.js";
|
|
7
7
|
import { buildQwenVideoGenerationProvider } from "./video-generation-provider.js";
|
|
8
8
|
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
9
|
+
import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
9
10
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
10
11
|
//#region extensions/qwen/index.ts
|
|
11
12
|
const PROVIDER_ID = "qwen";
|
|
@@ -187,14 +188,20 @@ var qwen_default = defineSingleProviderPluginEntry({
|
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
],
|
|
190
|
-
catalog: {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
catalog: {
|
|
192
|
+
run: async (ctx) => {
|
|
193
|
+
const auth = ctx.resolveProviderApiKey(PROVIDER_ID);
|
|
194
|
+
if (!auth.apiKey) return null;
|
|
195
|
+
const baseUrl = resolveConfiguredQwenBaseUrl(ctx.config) ?? "https://coding-intl.dashscope.aliyuncs.com/v1";
|
|
196
|
+
return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
|
|
197
|
+
providerId: PROVIDER_ID,
|
|
198
|
+
providerConfig: buildQwenProvider({ baseUrl }),
|
|
199
|
+
apiKey: auth.apiKey,
|
|
200
|
+
discoveryApiKey: auth.discoveryApiKey
|
|
201
|
+
}) };
|
|
202
|
+
},
|
|
203
|
+
staticRun: async () => ({ provider: buildQwenProvider() })
|
|
204
|
+
},
|
|
198
205
|
applyNativeStreamingUsageCompat: ({ providerConfig }) => applyQwenNativeStreamingUsageCompat(providerConfig),
|
|
199
206
|
wrapStreamFn: wrapQwenProviderStream,
|
|
200
207
|
normalizeConfig: ({ providerConfig }) => {
|
|
@@ -216,12 +223,14 @@ var qwen_default = defineSingleProviderPluginEntry({
|
|
|
216
223
|
catalog: {
|
|
217
224
|
order: "simple",
|
|
218
225
|
run: async (ctx) => {
|
|
219
|
-
const
|
|
220
|
-
if (!apiKey) return null;
|
|
221
|
-
return { provider: {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
226
|
+
const auth = ctx.resolveProviderApiKey(QWEN_TOKEN_PLAN_PROVIDER_ID);
|
|
227
|
+
if (!auth.apiKey) return null;
|
|
228
|
+
return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
|
|
229
|
+
providerId: QWEN_TOKEN_PLAN_PROVIDER_ID,
|
|
230
|
+
providerConfig: buildQwenTokenPlanProvider({ baseUrl: resolveConfiguredQwenTokenPlanBaseUrl(ctx.config) }),
|
|
231
|
+
apiKey: auth.apiKey,
|
|
232
|
+
discoveryApiKey: auth.discoveryApiKey
|
|
233
|
+
}) };
|
|
225
234
|
}
|
|
226
235
|
},
|
|
227
236
|
staticCatalog: {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/qwen-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/qwen-provider",
|
|
9
|
-
"version": "2026.7.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.4"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/qwen-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"description": "OpenClaw Qwen Cloud 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.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.4",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
42
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|