From b86ed46845936285b78e56c9ab544daf06e564e5 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:17:19 +0800 Subject: [PATCH] fix(codex): Remove reasoning.effort for default gpt-5-codex model --- internal/runtime/executor/codex_executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/runtime/executor/codex_executor.go b/internal/runtime/executor/codex_executor.go index 5f4779e3..d07959db 100644 --- a/internal/runtime/executor/codex_executor.go +++ b/internal/runtime/executor/codex_executor.go @@ -71,7 +71,7 @@ func (e *CodexExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth, re body, _ = sjson.SetBytes(body, "model", "gpt-5-codex") switch req.Model { case "gpt-5-codex": - body, _ = sjson.SetBytes(body, "reasoning.effort", "medium") + body, _ = sjson.DeleteBytes(body, "reasoning.effort") case "gpt-5-codex-low": body, _ = sjson.SetBytes(body, "reasoning.effort", "low") case "gpt-5-codex-medium": @@ -166,7 +166,7 @@ func (e *CodexExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.Au body, _ = sjson.SetBytes(body, "model", "gpt-5-codex") switch req.Model { case "gpt-5-codex": - body, _ = sjson.SetBytes(body, "reasoning.effort", "medium") + body, _ = sjson.DeleteBytes(body, "reasoning.effort") case "gpt-5-codex-low": body, _ = sjson.SetBytes(body, "reasoning.effort", "low") case "gpt-5-codex-medium":