fix(ai): clamp minimal reasoning for gpt-5.3-codex (fixes #1334)

This commit is contained in:
Mario Zechner 2026-02-06 18:45:08 +01:00
parent b0a8d79844
commit f5b9eeb514
2 changed files with 97 additions and 1 deletions

View file

@ -282,7 +282,7 @@ function buildRequestBody(
function clampReasoningEffort(modelId: string, effort: string): string {
const id = modelId.includes("/") ? modelId.split("/").pop()! : modelId;
if (id.startsWith("gpt-5.2") && effort === "minimal") return "low";
if ((id.startsWith("gpt-5.2") || id.startsWith("gpt-5.3")) && effort === "minimal") return "low";
if (id === "gpt-5.1" && effort === "xhigh") return "high";
if (id === "gpt-5.1-codex-mini") return effort === "high" || effort === "xhigh" ? "high" : "medium";
return effort;