From aacfcae382f8596b1e5878f2de310ea139b10f67 Mon Sep 17 00:00:00 2001 From: kaixxx Date: Fri, 12 Sep 2025 00:59:49 +0200 Subject: [PATCH] Codex CLI - setting 'store = false' store = true leads to: BadRequestError("Error code: 400 - {'detail': 'Store must be set to false'}") --- .../codex/openai/chat-completions/codex_openai_request.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/translator/codex/openai/chat-completions/codex_openai_request.go b/internal/translator/codex/openai/chat-completions/codex_openai_request.go index de493cbc..602f3e52 100644 --- a/internal/translator/codex/openai/chat-completions/codex_openai_request.go +++ b/internal/translator/codex/openai/chat-completions/codex_openai_request.go @@ -259,9 +259,6 @@ func ConvertOpenAIRequestToCodex(modelName string, inputRawJSON []byte, stream b out, _ = sjson.Set(out, "text.verbosity", v.Value()) } } - - // The examples include store: true when response_format is provided - store = true } else if text.Exists() { // If only text.verbosity present (no response_format), map verbosity if v := text.Get("verbosity"); v.Exists() { @@ -306,10 +303,6 @@ func ConvertOpenAIRequestToCodex(modelName string, inputRawJSON []byte, stream b out, _ = sjson.SetRaw(out, "tools.-1", item) } } - // The examples include store: true when tools and formatting are used; be conservative - if rf.Exists() { - store = true - } } out, _ = sjson.Set(out, "store", store)