refactor: 移除 resolveAppliedEffort 中的 max/xhigh 降级分支
This commit is contained in:
parent
7b52054ff5
commit
03598d3f84
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user