feat: support max reasoning effort and rebuild release

This commit is contained in:
shiyue
2026-08-11 08:11:58 +08:00
parent 70be7eb279
commit e7d28935ef
8 changed files with 107 additions and 12 deletions

View File

@@ -211,7 +211,7 @@ function createAgentRuntime(deps) {
// cc-web UI supports "gpt-5.4(high)" style selection, but Codex CLI expects:
// - model: "gpt-5.4"
// - reasoning effort: config key `model_reasoning_effort = "high"`
const m = raw.match(/^(.*)\((low|medium|high|xhigh|ultra)\)\s*$/i);
const m = raw.match(/^(.*)\((low|medium|high|xhigh|max|ultra)\)\s*$/i);
if (m) {
const base = String(m[1] || '').trim();
const lvl = String(m[2] || '').trim().toLowerCase();