@openclaw/qwen-provider 2026.10.1-beta.2 → 2026.10.5-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -26
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -29,6 +29,19 @@ function resolveConfiguredQwenBaseUrl(config, providerIds) {
29
29
  if (baseUrl) return baseUrl;
30
30
  }
31
31
  }
32
+ async function resolveQwenCatalog(ctx, providerId) {
33
+ const auth = ctx.resolveProviderApiKey(providerId);
34
+ if (!auth.apiKey) return null;
35
+ const baseUrl = resolveConfiguredQwenBaseUrl(ctx.config, providerId === PROVIDER_ID ? [PROVIDER_ID, LEGACY_PROVIDER_ID] : [providerId]);
36
+ return await buildOpenAICompatibleLiveProviderCatalog({
37
+ discoveryMode: "strict",
38
+ providerId,
39
+ providerConfig: (providerId === PROVIDER_ID ? buildQwenProvider : buildQwenTokenPlanProvider)({ baseUrl }),
40
+ apiKey: auth.apiKey,
41
+ discoveryApiKey: auth.discoveryApiKey,
42
+ profileId: auth.profileId
43
+ });
44
+ }
32
45
  function createQwenAuthMethod(plan, region) {
33
46
  const isStandard = plan === "standard";
34
47
  const isCn = region === "cn";
@@ -132,19 +145,7 @@ var qwen_default = defineSingleProviderPluginEntry({
132
145
  createQwenAuthMethod("coding", "global")
133
146
  ],
134
147
  catalog: {
135
- run: async (ctx) => {
136
- const auth = ctx.resolveProviderApiKey(PROVIDER_ID);
137
- if (!auth.apiKey) return null;
138
- const baseUrl = resolveConfiguredQwenBaseUrl(ctx.config, [PROVIDER_ID, LEGACY_PROVIDER_ID]) ?? "https://coding-intl.dashscope.aliyuncs.com/v1";
139
- return await buildOpenAICompatibleLiveProviderCatalog({
140
- discoveryMode: "strict",
141
- providerId: PROVIDER_ID,
142
- providerConfig: buildQwenProvider({ baseUrl }),
143
- apiKey: auth.apiKey,
144
- discoveryApiKey: auth.discoveryApiKey,
145
- profileId: auth.profileId
146
- });
147
- },
148
+ run: (ctx) => resolveQwenCatalog(ctx, PROVIDER_ID),
148
149
  staticRun: async () => ({ provider: buildQwenProvider() })
149
150
  },
150
151
  wrapStreamFn: wrapQwenProviderStream,
@@ -169,19 +170,7 @@ var qwen_default = defineSingleProviderPluginEntry({
169
170
  auth: [createQwenTokenPlanAuthMethod("global"), createQwenTokenPlanAuthMethod("cn")],
170
171
  catalog: {
171
172
  order: "simple",
172
- run: async (ctx) => {
173
- const auth = ctx.resolveProviderApiKey(QWEN_TOKEN_PLAN_PROVIDER_ID);
174
- if (!auth.apiKey) return null;
175
- const baseUrl = resolveConfiguredQwenBaseUrl(ctx.config, [QWEN_TOKEN_PLAN_PROVIDER_ID]);
176
- return await buildOpenAICompatibleLiveProviderCatalog({
177
- discoveryMode: "strict",
178
- providerId: QWEN_TOKEN_PLAN_PROVIDER_ID,
179
- providerConfig: buildQwenTokenPlanProvider({ baseUrl }),
180
- apiKey: auth.apiKey,
181
- discoveryApiKey: auth.discoveryApiKey,
182
- profileId: auth.profileId
183
- });
184
- }
173
+ run: (ctx) => resolveQwenCatalog(ctx, QWEN_TOKEN_PLAN_PROVIDER_ID)
185
174
  },
186
175
  staticCatalog: {
187
176
  order: "simple",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qwen-provider",
3
- "version": "2026.10.1-beta.2",
3
+ "version": "2026.10.5-beta.1",
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.10.1-beta.2"
21
+ "pluginApi": ">=2026.10.5-beta.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.10.1-beta.2",
24
+ "openclawVersion": "2026.10.5-beta.1",
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.10.1-beta.2"
43
+ "openclaw": ">=2026.10.5-beta.1"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {