diff --git a/open-sse/providers/registry/codex.js b/open-sse/providers/registry/codex.js index f01153db..15a38784 100644 --- a/open-sse/providers/registry/codex.js +++ b/open-sse/providers/registry/codex.js @@ -2,7 +2,7 @@ import { withCodexReviewModels } from "../models/helpers.js"; // Codex CLI version seen by OpenAI's backend — single source for the Version / // User-Agent identity headers. Bump when the installed codex CLI is upgraded. -const CODEX_CLI_VERSION = "0.155.0"; +const CODEX_CLI_VERSION = "0.159.0"; const GPT_6_LITE_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"]; export default { diff --git a/tests/unit/codex-gpt6-lite.test.js b/tests/unit/codex-gpt6-lite.test.js index 25182652..77cb8ed7 100644 --- a/tests/unit/codex-gpt6-lite.test.js +++ b/tests/unit/codex-gpt6-lite.test.js @@ -190,7 +190,8 @@ describe("Codex GPT-6 Sol/Luna transport", () => { const body = JSON.parse(options.body); expect(url).toBe("https://chatgpt.com/backend-api/codex/responses"); expect(options.headers["x-openai-internal-codex-responses-lite"]).toBe("true"); - expect(options.headers.version).toBe("0.155.0"); + expect(options.headers.version).toBe("0.159.0"); + expect(options.headers["User-Agent"]).toBe("codex_cli_rs/0.159.0"); expect(body.model).toBe("gpt-6-luna"); expect(body.instructions).toBe(""); expect(body.input[0].type).toBe("additional_tools");