fix(models): 修正qwen3模型thinking系列的支持判断

修复qwen3模型中thinking系列不应支持控制思考的逻辑错误
This commit is contained in:
icarus
2025-08-05 22:04:00 +08:00
parent a3b8c722a7
commit 189d878dc3

View File

@@ -2705,12 +2705,10 @@ export function isSupportedThinkingTokenQwenModel(model?: Model): boolean {
}
if (baseName.startsWith('qwen3')) {
if (baseName.includes('instruct')) {
// NOTE: thinking系列不支持控制思考
if (baseName.includes('instruct') || baseName.includes('thinking')) {
return false
}
if (baseName.includes('thinking')) {
return true
}
return true
}