From 3f2f7444e851b4dc8062f5fee47e9e8b0e194c40 Mon Sep 17 00:00:00 2001 From: SuYao Date: Tue, 3 Jun 2025 10:50:31 +0800 Subject: [PATCH] =?UTF-8?q?hotfix:=20update=20qwen3=20model=20identificati?= =?UTF-8?q?on=20logic=20to=20use=20startsWith=20for=20im=E2=80=A6=20(#6738?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: update qwen3 model identification logic to use startsWith for improved accuracy --- src/renderer/src/config/models.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index aaf7d8a4f3..d7843d5903 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -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',