@openclaw/qwen-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
@@ -5,7 +5,7 @@ import { applyQwenConfig, applyQwenConfigCn, applyQwenStandardConfig, applyQwenS
5
5
  import { wrapQwenProviderStream } from "./stream.js";
6
6
  import { qwenVideoGenerationProvider } from "./video-generation-provider.js";
7
7
  import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
8
- import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
8
+ import { buildOpenAICompatibleLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
9
9
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
10
10
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
11
11
  //#region extensions/qwen/index.ts
@@ -203,12 +203,14 @@ var qwen_default = defineSingleProviderPluginEntry({
203
203
  const auth = ctx.resolveProviderApiKey(PROVIDER_ID);
204
204
  if (!auth.apiKey) return null;
205
205
  const baseUrl = resolveConfiguredQwenBaseUrl(ctx.config) ?? "https://coding-intl.dashscope.aliyuncs.com/v1";
206
- return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
206
+ return await buildOpenAICompatibleLiveProviderCatalog({
207
+ discoveryMode: "strict",
207
208
  providerId: PROVIDER_ID,
208
209
  providerConfig: buildQwenProvider({ baseUrl }),
209
210
  apiKey: auth.apiKey,
210
- discoveryApiKey: auth.discoveryApiKey
211
- }) };
211
+ discoveryApiKey: auth.discoveryApiKey,
212
+ profileId: auth.profileId
213
+ });
212
214
  },
213
215
  staticRun: async () => ({ provider: buildQwenProvider() })
214
216
  },
@@ -236,12 +238,14 @@ var qwen_default = defineSingleProviderPluginEntry({
236
238
  const auth = ctx.resolveProviderApiKey(QWEN_TOKEN_PLAN_PROVIDER_ID);
237
239
  if (!auth.apiKey) return null;
238
240
  const baseUrl = resolveConfiguredQwenTokenPlanBaseUrl(ctx.config);
239
- return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
241
+ return await buildOpenAICompatibleLiveProviderCatalog({
242
+ discoveryMode: "strict",
240
243
  providerId: QWEN_TOKEN_PLAN_PROVIDER_ID,
241
244
  providerConfig: buildQwenTokenPlanProvider({ baseUrl }),
242
245
  apiKey: auth.apiKey,
243
- discoveryApiKey: auth.discoveryApiKey
244
- }) };
246
+ discoveryApiKey: auth.discoveryApiKey,
247
+ profileId: auth.profileId
248
+ });
245
249
  }
246
250
  },
247
251
  staticCatalog: {
package/dist/onboard.js CHANGED
@@ -4,13 +4,13 @@ import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-o
4
4
  //#region extensions/qwen/onboard.ts
5
5
  const qwenPresetAppliers = createModelCatalogPresetAppliers({
6
6
  primaryModelRef: QWEN_DEFAULT_MODEL_REF,
7
- resolveParams: (_cfg, baseUrl) => {
7
+ resolveParams: (cfg, baseUrl) => {
8
8
  const provider = buildQwenProvider({ baseUrl });
9
9
  return {
10
10
  providerId: "qwen",
11
11
  api: provider.api ?? "openai-completions",
12
12
  baseUrl,
13
- catalogModels: provider.models ?? [],
13
+ catalogModels: cfg.models?.mode === "replace" ? provider.models ?? [] : [],
14
14
  aliases: [...(provider.models ?? []).flatMap((model) => [`qwen/${model.id}`, `modelstudio/${model.id}`]), {
15
15
  modelRef: QWEN_DEFAULT_MODEL_REF,
16
16
  alias: "Qwen"
@@ -20,13 +20,13 @@ const qwenPresetAppliers = createModelCatalogPresetAppliers({
20
20
  });
21
21
  const qwenTokenPlanPresetAppliers = createModelCatalogPresetAppliers({
22
22
  primaryModelRef: QWEN_TOKEN_PLAN_DEFAULT_MODEL_REF,
23
- resolveParams: (_cfg, baseUrl) => {
23
+ resolveParams: (cfg, baseUrl) => {
24
24
  const provider = buildQwenTokenPlanProvider({ baseUrl });
25
25
  return {
26
26
  providerId: QWEN_TOKEN_PLAN_PROVIDER_ID,
27
27
  api: provider.api ?? "openai-completions",
28
28
  baseUrl,
29
- catalogModels: provider.models ?? [],
29
+ catalogModels: cfg.models?.mode === "replace" ? provider.models ?? [] : [],
30
30
  aliases: [...(provider.models ?? []).map((model) => `${QWEN_TOKEN_PLAN_PROVIDER_ID}/${model.id}`), {
31
31
  modelRef: QWEN_TOKEN_PLAN_DEFAULT_MODEL_REF,
32
32
  alias: "Qwen Token Plan"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qwen-provider",
3
- "version": "2026.9.2",
3
+ "version": "2026.9.3",
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.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": {