fix(claude): normalize adaptive auto effort (#3792)

Claude adaptive requests without an explicit effort are normalized to
output_config.effort: "high" instead of forwarding the unsupported
literal value "auto" which Anthropic rejects with HTTP 400.
This commit is contained in:
Sutarto Jordan Chrisfivo authored and decolua committed 2026-09-05 21:41:25 +07:00
1 parent 1442cc73ce
commit 77e6a227fe
2 files changed
+11 -1

No files matched your search

@@ -246,7 +246,7 @@ function applyFormat(fmt, body, cfg, caps, supportedLevels) {
if (canDisable) body.thinking = { type: "adaptive" };
else delete body.thinking;
const level = toLevel(eff);
body.output_config = { effort: level === "xhigh" ? "high" : level };
body.output_config = { effort: level === "xhigh" || level === "auto" ? "high" : level };
break;
}
case "claude-budget": {