From 5ee9731d2843b623b5988070d55f4381aa867340 Mon Sep 17 00:00:00 2001 From: SuYao Date: Mon, 4 Aug 2025 00:44:52 +0800 Subject: [PATCH] fix(models): add 'qwen-plus-latest' entry and update regex patterns for model token limits (#8804) --- src/renderer/src/config/models.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index 45100719dc..ba59c020c7 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -3099,11 +3099,12 @@ export const THINKING_TOKEN_MAP: Record = 'qwen3-235b-a22b-thinking-2507$': { min: 0, max: 81_920 }, 'qwen3-30b-a3b-thinking-2507$': { min: 0, max: 81_920 }, 'qwen-plus-2025-07-28$': { min: 0, max: 81_920 }, + 'qwen-plus-latest$': { min: 0, max: 81_920 }, 'qwen3-1\\.7b$': { min: 0, max: 30_720 }, 'qwen3-0\\.6b$': { min: 0, max: 30_720 }, - 'qwen-plus-.*$': { min: 0, max: 38912 }, - 'qwen-turbo-.*$': { min: 0, max: 38912 }, - 'qwen3-.*$': { min: 1024, max: 38912 }, + 'qwen-plus.*$': { min: 0, max: 38_912 }, + 'qwen-turbo.*$': { min: 0, max: 38_912 }, + 'qwen3-.*$': { min: 1024, max: 38_912 }, // Claude models 'claude-3[.-]7.*sonnet.*$': { min: 1024, max: 64000 },