mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:10:45 +00:00
@@ -211,7 +211,11 @@ function isKnownXHighCodexModel(modelId: string): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
function isModernCodexModel(modelId: string): boolean {
|
||||
// Exported so adapter request paths (thread-lifecycle.resolveReasoningEffort)
|
||||
// can branch on model-family enum support: modern Codex models use the
|
||||
// none/low/medium/high/xhigh effort enum and reject "minimal", which is the
|
||||
// CLI default. (#71946)
|
||||
export function isModernCodexModel(modelId: string): boolean {
|
||||
const lower = modelId.trim().toLowerCase();
|
||||
return (
|
||||
lower === "gpt-5.5" || lower === "gpt-5.4" || lower === "gpt-5.4-mini" || lower === "gpt-5.2"
|
||||
|
||||
Reference in New Issue
Block a user