Skip to content

Commit a10d82c

Browse files
committed
feat(dashscope): add qwen3.6-plus model support
1 parent a98ebdf commit a10d82c

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

src/utils/context.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ test('unknown openai-compatible models still use the conservative fallback windo
114114
expect(getContextWindowForModel('some-unknown-3p-model')).toBe(8_000)
115115
})
116116

117+
test('DashScope qwen3.6-plus uses provider-specific context and output caps', () => {
118+
process.env.CLAUDE_CODE_USE_OPENAI = '1'
119+
delete process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS
120+
121+
expect(getContextWindowForModel('qwen3.6-plus')).toBe(1_000_000)
122+
expect(getModelMaxOutputTokens('qwen3.6-plus')).toEqual({
123+
default: 65_536,
124+
upperLimit: 65_536,
125+
})
126+
expect(getMaxOutputTokensForModel('qwen3.6-plus')).toBe(65_536)
127+
})
128+
117129
test('DashScope qwen3.5-plus uses provider-specific context and output caps', () => {
118130
process.env.CLAUDE_CODE_USE_OPENAI = '1'
119131
delete process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS
@@ -229,6 +241,7 @@ test('DashScope models clamp oversized max output overrides to the provider limi
229241
process.env.CLAUDE_CODE_USE_OPENAI = '1'
230242
process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS = '100000'
231243

244+
expect(getMaxOutputTokensForModel('qwen3.6-plus')).toBe(65_536)
232245
expect(getMaxOutputTokensForModel('qwen3.5-plus')).toBe(65_536)
233246
expect(getMaxOutputTokensForModel('qwen3-coder-next')).toBe(65_536)
234247
expect(getMaxOutputTokensForModel('qwen3-max')).toBe(32_768)

src/utils/model/openaiContextWindows.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const OPENAI_CONTEXT_WINDOWS: Record<string, number> = {
8080
// Values sourced from: qwen3.5-plus/qwen3-coder-plus (1M), qwen3-coder-next/max (256K),
8181
// kimi-k2.5 (256K), MiniMax-M2.5 (192K), glm-5/glm-4.7 (198K).
8282
// Max output tokens: Qwen variants (64K/32K), MiniMax (24K), GLM (16K).
83+
'qwen3.6-plus': 1_000_000,
8384
'qwen3.5-plus': 1_000_000,
8485
'qwen3-coder-plus': 1_000_000,
8586
'qwen3-coder-next': 262_144,
@@ -160,6 +161,7 @@ const OPENAI_MAX_OUTPUT_TOKENS: Record<string, number> = {
160161
'codestral': 8_192,
161162

162163
// Alibaba DashScope (Coding Plan)
164+
'qwen3.6-plus': 65_536,
163165
'qwen3.5-plus': 65_536,
164166
'qwen3-coder-plus': 65_536,
165167
'qwen3-coder-next': 65_536,

src/utils/providerProfiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export function getProviderPresetDefaults(
224224
provider: 'openai',
225225
name: 'Alibaba Coding Plan (China)',
226226
baseUrl: 'https://coding.dashscope.aliyuncs.com/v1',
227-
model: 'qwen3.5-plus',
227+
model: 'qwen3.6-plus',
228228
apiKey: process.env.DASHSCOPE_API_KEY ?? '',
229229
requiresApiKey: true,
230230
}
@@ -233,7 +233,7 @@ export function getProviderPresetDefaults(
233233
provider: 'openai',
234234
name: 'Alibaba Coding Plan',
235235
baseUrl: 'https://coding-intl.dashscope.aliyuncs.com/v1',
236-
model: 'qwen3.5-plus',
236+
model: 'qwen3.6-plus',
237237
apiKey: process.env.DASHSCOPE_API_KEY ?? '',
238238
requiresApiKey: true,
239239
}

0 commit comments

Comments
 (0)