@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 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: { run: async (ctx) => {
191
- const apiKey = ctx.resolveProviderApiKey(PROVIDER_ID).apiKey;
192
- if (!apiKey) return null;
193
- return { provider: {
194
- ...buildQwenProvider({ baseUrl: resolveConfiguredQwenBaseUrl(ctx.config) ?? "https://coding-intl.dashscope.aliyuncs.com/v1" }),
195
- apiKey
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 apiKey = ctx.resolveProviderApiKey(QWEN_TOKEN_PLAN_PROVIDER_ID).apiKey;
220
- if (!apiKey) return null;
221
- return { provider: {
222
- ...buildQwenTokenPlanProvider({ baseUrl: resolveConfiguredQwenTokenPlanBaseUrl(ctx.config) }),
223
- apiKey
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: {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/qwen-provider",
3
- "version": "2026.7.2-beta.3",
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.3"
9
+ "version": "2026.7.2-beta.4"
10
10
  }
11
11
  }
12
12
  }
@@ -222,7 +222,8 @@
222
222
  }
223
223
  },
224
224
  "discovery": {
225
- "qwen-token-plan": "static"
225
+ "qwen": "runtime",
226
+ "qwen-token-plan": "refreshable"
226
227
  }
227
228
  },
228
229
  "contracts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qwen-provider",
3
- "version": "2026.7.2-beta.3",
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.3"
21
+ "pluginApi": ">=2026.7.2-beta.4"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.3",
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.3"
42
+ "openclaw": ">=2026.7.2-beta.4"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {