@openclaw/qwen-provider 2026.7.33 → 2026.7.35
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 +2 -2
- package/dist/models.js +60 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QWEN_DEFAULT_MODEL_REF, QWEN_OAUTH_DEFAULT_MODEL_REF, QWEN_OAUTH_PROVIDER_ID, applyQwenNativeStreamingUsageCompat, isQwenCodingPlanBaseUrl } from "./models.js";
|
|
2
2
|
import { buildQwenOAuthProvider, buildQwenProvider } from "./provider-catalog.js";
|
|
3
3
|
import { wrapQwenProviderStream } from "./stream.js";
|
|
4
4
|
import "./api.js";
|
|
@@ -143,7 +143,7 @@ var qwen_default = defineSingleProviderPluginEntry({
|
|
|
143
143
|
wrapStreamFn: wrapQwenProviderStream,
|
|
144
144
|
normalizeConfig: ({ providerConfig }) => {
|
|
145
145
|
if (!isQwenCodingPlanBaseUrl(providerConfig.baseUrl)) return;
|
|
146
|
-
const models = providerConfig.models?.filter((model) => model.id !==
|
|
146
|
+
const models = providerConfig.models?.filter((model) => model.id !== "qwen3.6-plus" && model.id !== "qwen3.8-max" && model.id !== "qwen3.8-flash");
|
|
147
147
|
return models && models.length !== providerConfig.models?.length ? {
|
|
148
148
|
...providerConfig,
|
|
149
149
|
models
|
package/dist/models.js
CHANGED
|
@@ -9,6 +9,11 @@ const QWEN_OAUTH_PROVIDER_ID = "qwen-oauth";
|
|
|
9
9
|
const QWEN_OAUTH_BASE_URL = "https://portal.qwen.ai/v1";
|
|
10
10
|
const QWEN_DEFAULT_MODEL_ID = "qwen3.5-plus";
|
|
11
11
|
const QWEN_36_PLUS_MODEL_ID = "qwen3.6-plus";
|
|
12
|
+
const QWEN_STANDARD_ONLY_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
13
|
+
"qwen3.6-plus",
|
|
14
|
+
"qwen3.8-max",
|
|
15
|
+
"qwen3.8-flash"
|
|
16
|
+
]);
|
|
12
17
|
const QWEN_DEFAULT_COST = {
|
|
13
18
|
input: 0,
|
|
14
19
|
output: 0,
|
|
@@ -36,6 +41,60 @@ const QWEN_MODEL_CATALOG = [
|
|
|
36
41
|
contextWindow: 1e6,
|
|
37
42
|
maxTokens: 65536
|
|
38
43
|
},
|
|
44
|
+
{
|
|
45
|
+
id: "qwen3.8-max",
|
|
46
|
+
name: "qwen3.8-max",
|
|
47
|
+
reasoning: true,
|
|
48
|
+
input: ["text", "image"],
|
|
49
|
+
cost: QWEN_DEFAULT_COST,
|
|
50
|
+
contextWindow: 1e6,
|
|
51
|
+
maxTokens: 131072,
|
|
52
|
+
thinkingLevelMap: {
|
|
53
|
+
minimal: "low",
|
|
54
|
+
high: "xhigh",
|
|
55
|
+
max: "xhigh"
|
|
56
|
+
},
|
|
57
|
+
compat: {
|
|
58
|
+
supportsReasoningEffort: true,
|
|
59
|
+
supportedReasoningEfforts: [
|
|
60
|
+
"low",
|
|
61
|
+
"medium",
|
|
62
|
+
"xhigh"
|
|
63
|
+
],
|
|
64
|
+
reasoningEffortMap: {
|
|
65
|
+
minimal: "low",
|
|
66
|
+
high: "xhigh",
|
|
67
|
+
max: "xhigh"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "qwen3.8-flash",
|
|
73
|
+
name: "qwen3.8-flash",
|
|
74
|
+
reasoning: true,
|
|
75
|
+
input: ["text", "image"],
|
|
76
|
+
cost: QWEN_DEFAULT_COST,
|
|
77
|
+
contextWindow: 1e6,
|
|
78
|
+
maxTokens: 131072,
|
|
79
|
+
thinkingLevelMap: {
|
|
80
|
+
minimal: "low",
|
|
81
|
+
high: "xhigh",
|
|
82
|
+
max: "xhigh"
|
|
83
|
+
},
|
|
84
|
+
compat: {
|
|
85
|
+
supportsReasoningEffort: true,
|
|
86
|
+
supportedReasoningEfforts: [
|
|
87
|
+
"low",
|
|
88
|
+
"medium",
|
|
89
|
+
"xhigh"
|
|
90
|
+
],
|
|
91
|
+
reasoningEffortMap: {
|
|
92
|
+
minimal: "low",
|
|
93
|
+
high: "xhigh",
|
|
94
|
+
max: "xhigh"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
39
98
|
{
|
|
40
99
|
id: "qwen3-max-2026-01-23",
|
|
41
100
|
name: "qwen3-max-2026-01-23",
|
|
@@ -114,7 +173,7 @@ function isQwen36PlusSupportedBaseUrl(baseUrl) {
|
|
|
114
173
|
return !isQwenCodingPlanBaseUrl(baseUrl);
|
|
115
174
|
}
|
|
116
175
|
function buildQwenModelCatalogForBaseUrl(baseUrl) {
|
|
117
|
-
return isQwen36PlusSupportedBaseUrl(baseUrl) ? QWEN_MODEL_CATALOG : QWEN_MODEL_CATALOG.filter((model) => model.id
|
|
176
|
+
return isQwen36PlusSupportedBaseUrl(baseUrl) ? QWEN_MODEL_CATALOG : QWEN_MODEL_CATALOG.filter((model) => !QWEN_STANDARD_ONLY_MODEL_IDS.has(model.id));
|
|
118
177
|
}
|
|
119
178
|
function isNativeQwenBaseUrl(baseUrl) {
|
|
120
179
|
return supportsNativeStreamingUsageCompat({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/qwen-provider",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.35",
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.7.35"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.
|
|
24
|
+
"openclawVersion": "2026.7.35",
|
|
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.7.
|
|
41
|
+
"openclaw": ">=2026.7.35"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|