mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 12:04:08 +00:00
fix(ai): clamp minimal reasoning for gpt-5.3-codex (fixes #1334)
This commit is contained in:
parent
b0a8d79844
commit
f5b9eeb514
2 changed files with 97 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue