From 03598d3f844658e089aecb6e862fe5231da0d27e Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Fri, 22 May 2026 20:09:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20resolveApplied?= =?UTF-8?q?Effort=20=E4=B8=AD=E7=9A=84=20max/xhigh=20=E9=99=8D=E7=BA=A7?= =?UTF-8?q?=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/effort.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/utils/effort.ts b/src/utils/effort.ts index 9d8fe8a0a..bbc16917e 100644 --- a/src/utils/effort.ts +++ b/src/utils/effort.ts @@ -185,10 +185,6 @@ export function resolveAppliedEffort( } const resolved = envOverride ?? appStateEffortValue ?? getDefaultEffortForModel(model) - // API rejects 'xhigh' on pre-Opus-4.7 models — downgrade to 'high'. - if (resolved === 'xhigh' && !modelSupportsXhighEffort(model)) { - return 'high' - } // OpenAI Responses uses xhigh as its highest public reasoning effort. // Keep /effort max usable as a familiar alias in ChatGPT subscription mode. if ( @@ -199,10 +195,6 @@ export function resolveAppliedEffort( ) { return 'xhigh' } - // API rejects 'max' on non-Opus-4.6 models — downgrade to 'high'. - if (resolved === 'max' && !modelSupportsMaxEffort(model)) { - return 'high' - } return resolved }