From 30d448e73c6c77797ed62db9273339f02b6b1098 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Sat, 8 Nov 2025 11:17:40 +0800 Subject: [PATCH] fix(executor): update model name from `codex-mini-latest` to `gpt-5-codex-mini` --- 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 55dc37d6..7a6a3a22 100644 --- a/internal/runtime/executor/codex_executor.go +++ b/internal/runtime/executor/codex_executor.go @@ -76,7 +76,7 @@ func (e *CodexExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth, re body, _ = sjson.SetBytes(body, "reasoning.effort", "high") } } else if util.InArray([]string{"gpt-5-codex-mini", "gpt-5-codex-mini-medium", "gpt-5-codex-mini-high"}, req.Model) { - body, _ = sjson.SetBytes(body, "model", "codex-mini-latest") + body, _ = sjson.SetBytes(body, "model", "gpt-5-codex-mini") switch req.Model { case "gpt-5-codex-mini-medium": body, _ = sjson.SetBytes(body, "reasoning.effort", "medium") @@ -199,7 +199,7 @@ func (e *CodexExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.Au body, _ = sjson.SetBytes(body, "reasoning.effort", "high") } } else if util.InArray([]string{"gpt-5-codex-mini", "gpt-5-codex-mini-medium", "gpt-5-codex-mini-high"}, req.Model) { - body, _ = sjson.SetBytes(body, "model", "codex-mini-latest") + body, _ = sjson.SetBytes(body, "model", "gpt-5-codex-mini") switch req.Model { case "gpt-5-codex-mini-medium": body, _ = sjson.SetBytes(body, "reasoning.effort", "medium")