hotfix: update qwen3 model identification logic to use startsWith for im… (#6738)

fix: update qwen3 model identification logic to use startsWith for improved accuracy
This commit is contained in:
SuYao 2025-06-03 10:50:31 +08:00 committed by GitHub
parent 446d26d8dc
commit be1dae7ef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2315,7 +2315,8 @@ export function isSupportedThinkingTokenQwenModel(model?: Model): boolean {
}
return (
model.id.toLowerCase().includes('qwen3') ||
model.id.toLowerCase().startsWith('qwen3') ||
model.id.toLowerCase().startsWith('qwen/qwen3') ||
[
'qwen-plus-latest',
'qwen-plus-0428',