mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
refactor: 移除 resolveAppliedEffort 中的 max/xhigh 降级分支
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user