From 240e7826069aa5b5bf59fc6b37ed5a9c48442f5c Mon Sep 17 00:00:00 2001 From: jeffnash Date: Fri, 7 Nov 2025 17:11:40 -0800 Subject: [PATCH] add default medium reasoning case for gpt-5-codex-mini Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/runtime/executor/codex_executor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runtime/executor/codex_executor.go b/internal/runtime/executor/codex_executor.go index 4297795c..c24e9589 100644 --- a/internal/runtime/executor/codex_executor.go +++ b/internal/runtime/executor/codex_executor.go @@ -203,6 +203,9 @@ func (e *CodexExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.Au body, _ = sjson.SetBytes(body, "reasoning.effort", "medium") case "gpt-5-codex-mini-high": body, _ = sjson.SetBytes(body, "reasoning.effort", "high") + default: + // For base "gpt-5-codex-mini", set reasoning.effort to "medium" by default + body, _ = sjson.SetBytes(body, "reasoning.effort", "medium") } }