From f4ef2ec9344c3f647a4dd5a223ebd3b36f3d829f Mon Sep 17 00:00:00 2001 From: Phantom <59059173+EurFelux@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:30:24 +0800 Subject: [PATCH] fix: remove gpt-5-chat from OpenAI reasoning models (#9136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 从OpenAI推理模型判断中移除gpt-5-chat --- src/renderer/src/config/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index d84bb90d26..dff5b37831 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -2469,7 +2469,7 @@ export function isVisionModel(model: Model): boolean { export function isOpenAIReasoningModel(model: Model): boolean { const modelId = getLowerBaseModelName(model.id, '/') - return isSupportedReasoningEffortOpenAIModel(model) || modelId.includes('o1') || modelId.includes('gpt-5-chat') + return isSupportedReasoningEffortOpenAIModel(model) || modelId.includes('o1') } export function isOpenAILLMModel(model: Model): boolean {