@openclaw/qwen-provider 2026.7.2-beta.3 → 2026.7.2-beta.5
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/dist/media-understanding-provider.js +1 -0
- package/dist/models.js +9 -96
- package/dist/stream.js +11 -20
- package/openclaw.plugin.json +7 -76
- package/package.json +4 -5
- package/npm-shrinkwrap.json +0 -12
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/dist/models.js
CHANGED
|
@@ -23,29 +23,18 @@ const QWEN_DEFAULT_COST = {
|
|
|
23
23
|
const QWEN_DEFAULT_MODEL_REF = `qwen/${QWEN_DEFAULT_MODEL_ID}`;
|
|
24
24
|
const QWEN_TOKEN_PLAN_DEFAULT_MODEL_ID = QWEN_37_PLUS_MODEL_ID;
|
|
25
25
|
const QWEN_TOKEN_PLAN_DEFAULT_MODEL_REF = `${QWEN_TOKEN_PLAN_PROVIDER_ID}/${QWEN_TOKEN_PLAN_DEFAULT_MODEL_ID}`;
|
|
26
|
-
const QWEN_TOKEN_PLAN_THINKING_ONLY_MODEL_IDS = /* @__PURE__ */ new Set(["kimi-k2.7-code", "minimax-m2.5"]);
|
|
27
|
-
const QWEN_TOKEN_PLAN_DEEPSEEK_V4_MODEL_IDS = /* @__PURE__ */ new Set(["deepseek-v4-pro", "deepseek-v4-flash"]);
|
|
28
|
-
const QWEN_TOKEN_PLAN_KIMI_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
29
|
-
"kimi-k2.7-code",
|
|
30
|
-
"kimi-k2.6",
|
|
31
|
-
"kimi-k2.5"
|
|
32
|
-
]);
|
|
33
|
-
const QWEN_TOKEN_PLAN_GLM_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
34
|
-
"glm-5.2",
|
|
35
|
-
"glm-5.1",
|
|
36
|
-
"glm-5"
|
|
37
|
-
]);
|
|
38
26
|
function isQwenTokenPlanThinkingOnlyModelId(modelId) {
|
|
39
|
-
|
|
27
|
+
const normalized = modelId.trim().toLowerCase();
|
|
28
|
+
return normalized === "minimax-m2.5" || normalized.startsWith("kimi-k2.7-code");
|
|
40
29
|
}
|
|
41
30
|
function isQwenTokenPlanDeepSeekV4ModelId(modelId) {
|
|
42
|
-
return
|
|
31
|
+
return modelId.trim().toLowerCase().startsWith("deepseek-v4");
|
|
43
32
|
}
|
|
44
33
|
function isQwenTokenPlanKimiModelId(modelId) {
|
|
45
|
-
return
|
|
34
|
+
return modelId.trim().toLowerCase().startsWith("kimi-");
|
|
46
35
|
}
|
|
47
36
|
function isQwenTokenPlanGlmModelId(modelId) {
|
|
48
|
-
return
|
|
37
|
+
return modelId.trim().toLowerCase().startsWith("glm-");
|
|
49
38
|
}
|
|
50
39
|
function supportsQwenTokenPlanGlmMaxThinking(modelId) {
|
|
51
40
|
return modelId.trim().toLowerCase() === "glm-5.2";
|
|
@@ -58,15 +47,6 @@ function resolveQwenTokenPlanBaseUrl(region) {
|
|
|
58
47
|
return QWEN_TOKEN_PLAN_BASE_URLS[region];
|
|
59
48
|
}
|
|
60
49
|
const QWEN_TOKEN_PLAN_MODEL_CATALOG = [
|
|
61
|
-
{
|
|
62
|
-
id: QWEN_37_MAX_MODEL_ID,
|
|
63
|
-
name: QWEN_37_MAX_MODEL_ID,
|
|
64
|
-
reasoning: true,
|
|
65
|
-
input: ["text"],
|
|
66
|
-
cost: QWEN_DEFAULT_COST,
|
|
67
|
-
contextWindow: 1e6,
|
|
68
|
-
maxTokens: 65536
|
|
69
|
-
},
|
|
70
50
|
{
|
|
71
51
|
id: QWEN_37_PLUS_MODEL_ID,
|
|
72
52
|
name: QWEN_37_PLUS_MODEL_ID,
|
|
@@ -86,58 +66,13 @@ const QWEN_TOKEN_PLAN_MODEL_CATALOG = [
|
|
|
86
66
|
maxTokens: 65536
|
|
87
67
|
},
|
|
88
68
|
{
|
|
89
|
-
id:
|
|
90
|
-
name:
|
|
91
|
-
reasoning: true,
|
|
92
|
-
input: ["text", "image"],
|
|
93
|
-
cost: QWEN_DEFAULT_COST,
|
|
94
|
-
contextWindow: 1e6,
|
|
95
|
-
maxTokens: 65536
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: "deepseek-v4-pro",
|
|
99
|
-
name: "deepseek-v4-pro",
|
|
100
|
-
reasoning: true,
|
|
101
|
-
input: ["text"],
|
|
102
|
-
cost: QWEN_DEFAULT_COST,
|
|
103
|
-
contextWindow: 1e6,
|
|
104
|
-
maxTokens: 393216
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: "deepseek-v4-flash",
|
|
108
|
-
name: "deepseek-v4-flash",
|
|
109
|
-
reasoning: true,
|
|
110
|
-
input: ["text"],
|
|
111
|
-
cost: QWEN_DEFAULT_COST,
|
|
112
|
-
contextWindow: 1e6,
|
|
113
|
-
maxTokens: 393216
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: "deepseek-v3.2",
|
|
117
|
-
name: "deepseek-v3.2",
|
|
69
|
+
id: "qwen3-coder-next",
|
|
70
|
+
name: "qwen3-coder-next",
|
|
118
71
|
reasoning: true,
|
|
119
72
|
input: ["text"],
|
|
120
73
|
cost: QWEN_DEFAULT_COST,
|
|
121
|
-
contextWindow: 131072,
|
|
122
|
-
maxTokens: 65536
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "kimi-k2.7-code",
|
|
126
|
-
name: "kimi-k2.7-code",
|
|
127
|
-
reasoning: true,
|
|
128
|
-
input: ["text", "image"],
|
|
129
|
-
cost: QWEN_DEFAULT_COST,
|
|
130
74
|
contextWindow: 262144,
|
|
131
|
-
maxTokens:
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: "kimi-k2.6",
|
|
135
|
-
name: "kimi-k2.6",
|
|
136
|
-
reasoning: true,
|
|
137
|
-
input: ["text", "image"],
|
|
138
|
-
cost: QWEN_DEFAULT_COST,
|
|
139
|
-
contextWindow: 262144,
|
|
140
|
-
maxTokens: 98304
|
|
75
|
+
maxTokens: 65536
|
|
141
76
|
},
|
|
142
77
|
{
|
|
143
78
|
id: "kimi-k2.5",
|
|
@@ -148,24 +83,6 @@ const QWEN_TOKEN_PLAN_MODEL_CATALOG = [
|
|
|
148
83
|
contextWindow: 262144,
|
|
149
84
|
maxTokens: 98304
|
|
150
85
|
},
|
|
151
|
-
{
|
|
152
|
-
id: "glm-5.2",
|
|
153
|
-
name: "glm-5.2",
|
|
154
|
-
reasoning: true,
|
|
155
|
-
input: ["text"],
|
|
156
|
-
cost: QWEN_DEFAULT_COST,
|
|
157
|
-
contextWindow: 1e6,
|
|
158
|
-
maxTokens: 131072
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: "glm-5.1",
|
|
162
|
-
name: "glm-5.1",
|
|
163
|
-
reasoning: true,
|
|
164
|
-
input: ["text"],
|
|
165
|
-
cost: QWEN_DEFAULT_COST,
|
|
166
|
-
contextWindow: 202752,
|
|
167
|
-
maxTokens: 131072
|
|
168
|
-
},
|
|
169
86
|
{
|
|
170
87
|
id: "glm-5",
|
|
171
88
|
name: "glm-5",
|
|
@@ -185,10 +102,6 @@ const QWEN_TOKEN_PLAN_MODEL_CATALOG = [
|
|
|
185
102
|
maxTokens: 32768
|
|
186
103
|
}
|
|
187
104
|
];
|
|
188
|
-
function isQwenTokenPlanModelId(modelId) {
|
|
189
|
-
const normalized = modelId.trim().toLowerCase();
|
|
190
|
-
return QWEN_TOKEN_PLAN_MODEL_CATALOG.some((model) => model.id.toLowerCase() === normalized);
|
|
191
|
-
}
|
|
192
105
|
const QWEN_MODEL_CATALOG = [
|
|
193
106
|
{
|
|
194
107
|
id: "qwen3.5-plus",
|
|
@@ -369,4 +282,4 @@ const applyModelStudioNativeStreamingUsageCompat = applyQwenNativeStreamingUsage
|
|
|
369
282
|
const buildModelStudioModelDefinition = buildQwenModelDefinition;
|
|
370
283
|
const buildModelStudioDefaultModelDefinition = buildQwenDefaultModelDefinition;
|
|
371
284
|
//#endregion
|
|
372
|
-
export { MODELSTUDIO_BASE_URL, MODELSTUDIO_CN_BASE_URL, MODELSTUDIO_DEFAULT_COST, MODELSTUDIO_DEFAULT_MODEL_ID, MODELSTUDIO_DEFAULT_MODEL_REF, MODELSTUDIO_GLOBAL_BASE_URL, MODELSTUDIO_MODEL_CATALOG, MODELSTUDIO_STANDARD_CN_BASE_URL, MODELSTUDIO_STANDARD_GLOBAL_BASE_URL, QWEN_36_FLASH_MODEL_ID, QWEN_36_PLUS_MODEL_ID, QWEN_37_MAX_MODEL_ID, QWEN_37_PLUS_MODEL_ID, QWEN_BASE_URL, QWEN_CN_BASE_URL, QWEN_DEFAULT_COST, QWEN_DEFAULT_MODEL_ID, QWEN_DEFAULT_MODEL_REF, QWEN_GLOBAL_BASE_URL, QWEN_MODEL_CATALOG, QWEN_STANDARD_CN_BASE_URL, QWEN_STANDARD_GLOBAL_BASE_URL, QWEN_TOKEN_PLAN_CN_BASE_URL, QWEN_TOKEN_PLAN_DEFAULT_MODEL_ID, QWEN_TOKEN_PLAN_DEFAULT_MODEL_REF, QWEN_TOKEN_PLAN_GLOBAL_BASE_URL, QWEN_TOKEN_PLAN_LEGACY_PROVIDER_ID, QWEN_TOKEN_PLAN_MODEL_CATALOG, QWEN_TOKEN_PLAN_PROVIDER_ID, applyModelStudioNativeStreamingUsageCompat, applyQwenNativeStreamingUsageCompat, buildModelStudioDefaultModelDefinition, buildModelStudioModelDefinition, buildQwenDefaultModelDefinition, buildQwenModelCatalogForBaseUrl, buildQwenModelDefinition, isNativeModelStudioBaseUrl, isNativeQwenBaseUrl, isQwen36PlusSupportedBaseUrl, isQwenCodingPlanBaseUrl, isQwenStandardOnlyModelId, isQwenTokenPlanDeepSeekV4ModelId, isQwenTokenPlanGlmModelId, isQwenTokenPlanKimiModelId,
|
|
285
|
+
export { MODELSTUDIO_BASE_URL, MODELSTUDIO_CN_BASE_URL, MODELSTUDIO_DEFAULT_COST, MODELSTUDIO_DEFAULT_MODEL_ID, MODELSTUDIO_DEFAULT_MODEL_REF, MODELSTUDIO_GLOBAL_BASE_URL, MODELSTUDIO_MODEL_CATALOG, MODELSTUDIO_STANDARD_CN_BASE_URL, MODELSTUDIO_STANDARD_GLOBAL_BASE_URL, QWEN_36_FLASH_MODEL_ID, QWEN_36_PLUS_MODEL_ID, QWEN_37_MAX_MODEL_ID, QWEN_37_PLUS_MODEL_ID, QWEN_BASE_URL, QWEN_CN_BASE_URL, QWEN_DEFAULT_COST, QWEN_DEFAULT_MODEL_ID, QWEN_DEFAULT_MODEL_REF, QWEN_GLOBAL_BASE_URL, QWEN_MODEL_CATALOG, QWEN_STANDARD_CN_BASE_URL, QWEN_STANDARD_GLOBAL_BASE_URL, QWEN_TOKEN_PLAN_CN_BASE_URL, QWEN_TOKEN_PLAN_DEFAULT_MODEL_ID, QWEN_TOKEN_PLAN_DEFAULT_MODEL_REF, QWEN_TOKEN_PLAN_GLOBAL_BASE_URL, QWEN_TOKEN_PLAN_LEGACY_PROVIDER_ID, QWEN_TOKEN_PLAN_MODEL_CATALOG, QWEN_TOKEN_PLAN_PROVIDER_ID, applyModelStudioNativeStreamingUsageCompat, applyQwenNativeStreamingUsageCompat, buildModelStudioDefaultModelDefinition, buildModelStudioModelDefinition, buildQwenDefaultModelDefinition, buildQwenModelCatalogForBaseUrl, buildQwenModelDefinition, isNativeModelStudioBaseUrl, isNativeQwenBaseUrl, isQwen36PlusSupportedBaseUrl, isQwenCodingPlanBaseUrl, isQwenStandardOnlyModelId, isQwenTokenPlanDeepSeekV4ModelId, isQwenTokenPlanGlmModelId, isQwenTokenPlanKimiModelId, isQwenTokenPlanThinkingOnlyModelId, resolveQwenTokenPlanBaseUrl, supportsQwenTokenPlanGlmMaxThinking };
|
package/dist/stream.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isQwenTokenPlanDeepSeekV4ModelId, isQwenTokenPlanGlmModelId, isQwenTokenPlanKimiModelId,
|
|
1
|
+
import { isQwenTokenPlanDeepSeekV4ModelId, isQwenTokenPlanGlmModelId, isQwenTokenPlanKimiModelId, isQwenTokenPlanThinkingOnlyModelId, supportsQwenTokenPlanGlmMaxThinking } from "./models.js";
|
|
2
2
|
import { streamSimple } from "openclaw/plugin-sdk/llm";
|
|
3
3
|
import { normalizeProviderId } from "openclaw/plugin-sdk/provider-model-shared";
|
|
4
|
-
import { createPayloadPatchStreamWrapper, isOpenAICompatibleThinkingEnabled, setQwenChatTemplateThinking } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
4
|
+
import { createPayloadPatchStreamWrapper, isOpenAICompatibleThinkingEnabled, normalizeOpenAICompatibleReasoningReplay, setQwenChatTemplateThinking } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
5
5
|
//#region extensions/qwen/stream.ts
|
|
6
6
|
function asPayloadRecord(value) {
|
|
7
7
|
return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -44,28 +44,19 @@ function patchTokenPlanDeepSeekV4Payload(payload, thinkingLevel, enableThinking)
|
|
|
44
44
|
delete payload.thinking;
|
|
45
45
|
if (!enableThinking) {
|
|
46
46
|
delete payload.reasoning_effort;
|
|
47
|
-
|
|
48
|
-
for (const message of payload.messages) if (message && typeof message === "object") delete message.reasoning_content;
|
|
49
|
-
}
|
|
47
|
+
normalizeOpenAICompatibleReasoningReplay(payload, { thinkingEnabled: false });
|
|
50
48
|
return;
|
|
51
49
|
}
|
|
52
50
|
payload.reasoning_effort = thinkingLevel === "xhigh" || thinkingLevel === "max" ? "max" : "high";
|
|
53
|
-
|
|
54
|
-
for (const message of payload.messages) {
|
|
55
|
-
if (!message || typeof message !== "object") continue;
|
|
56
|
-
const record = message;
|
|
57
|
-
if (record.role === "assistant" && !("reasoning_content" in record)) record.reasoning_content = "";
|
|
58
|
-
}
|
|
51
|
+
normalizeOpenAICompatibleReasoningReplay(payload, { thinkingEnabled: true });
|
|
59
52
|
}
|
|
60
53
|
function patchTokenPlanKimiPayload(payload, enableThinking) {
|
|
61
54
|
delete payload.thinking;
|
|
62
55
|
delete payload.reasoning_effort;
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (record.role === "assistant" && Array.isArray(record.tool_calls) && record.tool_calls.length > 0 && !("reasoning_content" in record)) record.reasoning_content = "";
|
|
68
|
-
}
|
|
56
|
+
if (enableThinking) normalizeOpenAICompatibleReasoningReplay(payload, {
|
|
57
|
+
thinkingEnabled: true,
|
|
58
|
+
shouldBackfillAssistantMessage: (message) => Array.isArray(message.tool_calls) && message.tool_calls.length > 0
|
|
59
|
+
});
|
|
69
60
|
}
|
|
70
61
|
function normalizeTokenPlanThinkingToolChoice(payload, enableThinking, forceThinking) {
|
|
71
62
|
if (!enableThinking) return false;
|
|
@@ -179,10 +170,10 @@ function wrapQwenProviderStream(ctx) {
|
|
|
179
170
|
const explicitLegacyThinkingFormat = normalizeProviderId(ctx.provider) === "bailian-token-plan" && thinkingFormat !== void 0;
|
|
180
171
|
if (explicitLegacyThinkingFormat && thinkingFormat !== "qwen-chat-template") return ctx.streamFn;
|
|
181
172
|
const tokenPlanContract = explicitLegacyThinkingFormat ? void 0 : resolveQwenTokenPlanThinkingContract(ctx.provider, ctx.modelId);
|
|
182
|
-
const
|
|
183
|
-
const forceThinking =
|
|
173
|
+
const useTokenPlanConstraints = isQwenTokenPlanProviderId(ctx.provider) && !explicitLegacyThinkingFormat && thinkingFormat === void 0;
|
|
174
|
+
const forceThinking = useTokenPlanConstraints && isQwenTokenPlanThinkingOnlyModelId(ctx.modelId);
|
|
184
175
|
let streamFn = createQwenThinkingWrapper(ctx.streamFn, ctx.thinkingLevel, thinkingFormat, forceThinking, tokenPlanContract);
|
|
185
|
-
if (
|
|
176
|
+
if (useTokenPlanConstraints) streamFn = createQwenTokenPlanConstraintWrapper(streamFn, tokenPlanContract, forceThinking, ctx.thinkingLevel);
|
|
186
177
|
return streamFn;
|
|
187
178
|
}
|
|
188
179
|
//#endregion
|
package/openclaw.plugin.json
CHANGED
|
@@ -92,15 +92,6 @@
|
|
|
92
92
|
"baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
|
|
93
93
|
"api": "openai-completions",
|
|
94
94
|
"models": [
|
|
95
|
-
{
|
|
96
|
-
"id": "qwen3.7-max",
|
|
97
|
-
"name": "qwen3.7-max",
|
|
98
|
-
"reasoning": true,
|
|
99
|
-
"input": ["text"],
|
|
100
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
101
|
-
"contextWindow": 1000000,
|
|
102
|
-
"maxTokens": 65536
|
|
103
|
-
},
|
|
104
95
|
{
|
|
105
96
|
"id": "qwen3.7-plus",
|
|
106
97
|
"name": "qwen3.7-plus",
|
|
@@ -120,58 +111,15 @@
|
|
|
120
111
|
"maxTokens": 65536
|
|
121
112
|
},
|
|
122
113
|
{
|
|
123
|
-
"id": "qwen3
|
|
124
|
-
"name": "qwen3
|
|
125
|
-
"reasoning": true,
|
|
126
|
-
"input": ["text", "image"],
|
|
127
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
128
|
-
"contextWindow": 1000000,
|
|
129
|
-
"maxTokens": 65536
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"id": "deepseek-v4-pro",
|
|
133
|
-
"name": "deepseek-v4-pro",
|
|
134
|
-
"reasoning": true,
|
|
135
|
-
"input": ["text"],
|
|
136
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
137
|
-
"contextWindow": 1000000,
|
|
138
|
-
"maxTokens": 393216
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": "deepseek-v4-flash",
|
|
142
|
-
"name": "deepseek-v4-flash",
|
|
143
|
-
"reasoning": true,
|
|
144
|
-
"input": ["text"],
|
|
145
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
146
|
-
"contextWindow": 1000000,
|
|
147
|
-
"maxTokens": 393216
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"id": "deepseek-v3.2",
|
|
151
|
-
"name": "deepseek-v3.2",
|
|
114
|
+
"id": "qwen3-coder-next",
|
|
115
|
+
"name": "qwen3-coder-next",
|
|
152
116
|
"reasoning": true,
|
|
153
117
|
"input": ["text"],
|
|
154
118
|
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
155
|
-
"contextWindow": 131072,
|
|
156
|
-
"maxTokens": 65536
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"id": "kimi-k2.7-code",
|
|
160
|
-
"name": "kimi-k2.7-code",
|
|
161
|
-
"reasoning": true,
|
|
162
|
-
"input": ["text", "image"],
|
|
163
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
164
|
-
"contextWindow": 262144,
|
|
165
|
-
"maxTokens": 98304
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"id": "kimi-k2.6",
|
|
169
|
-
"name": "kimi-k2.6",
|
|
170
|
-
"reasoning": true,
|
|
171
|
-
"input": ["text", "image"],
|
|
172
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
173
119
|
"contextWindow": 262144,
|
|
174
|
-
"maxTokens":
|
|
120
|
+
"maxTokens": 65536,
|
|
121
|
+
"status": "deprecated",
|
|
122
|
+
"replacedBy": "qwen3.7-plus"
|
|
175
123
|
},
|
|
176
124
|
{
|
|
177
125
|
"id": "kimi-k2.5",
|
|
@@ -182,24 +130,6 @@
|
|
|
182
130
|
"contextWindow": 262144,
|
|
183
131
|
"maxTokens": 98304
|
|
184
132
|
},
|
|
185
|
-
{
|
|
186
|
-
"id": "glm-5.2",
|
|
187
|
-
"name": "glm-5.2",
|
|
188
|
-
"reasoning": true,
|
|
189
|
-
"input": ["text"],
|
|
190
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
191
|
-
"contextWindow": 1000000,
|
|
192
|
-
"maxTokens": 131072
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"id": "glm-5.1",
|
|
196
|
-
"name": "glm-5.1",
|
|
197
|
-
"reasoning": true,
|
|
198
|
-
"input": ["text"],
|
|
199
|
-
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
|
|
200
|
-
"contextWindow": 202752,
|
|
201
|
-
"maxTokens": 131072
|
|
202
|
-
},
|
|
203
133
|
{
|
|
204
134
|
"id": "glm-5",
|
|
205
135
|
"name": "glm-5",
|
|
@@ -222,7 +152,8 @@
|
|
|
222
152
|
}
|
|
223
153
|
},
|
|
224
154
|
"discovery": {
|
|
225
|
-
"qwen
|
|
155
|
+
"qwen": "runtime",
|
|
156
|
+
"qwen-token-plan": "refreshable"
|
|
226
157
|
}
|
|
227
158
|
},
|
|
228
159
|
"contracts": {
|
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.5",
|
|
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.5"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.5",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/**",
|
|
37
37
|
"openclaw.plugin.json",
|
|
38
|
-
"npm-shrinkwrap.json",
|
|
39
38
|
"README.md"
|
|
40
39
|
],
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
41
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
43
42
|
},
|
|
44
43
|
"peerDependenciesMeta": {
|
|
45
44
|
"openclaw": {
|
package/npm-shrinkwrap.json
DELETED