From bb53edc7732e2ea3374e482915e888824088ac47 Mon Sep 17 00:00:00 2001 From: helix4u <4317663+helix4u@users.noreply.github.com> Date: Sat, 6 Jun 2026 17:28:50 -0600 Subject: [PATCH] fix(image_gen): use gpt-5.5 for Codex image host --- plugins/image_gen/openai-codex/__init__.py | 2 +- tests/plugins/image_gen/test_openai_codex_provider.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/image_gen/openai-codex/__init__.py b/plugins/image_gen/openai-codex/__init__.py index 339e390be1f..6fde2d60bbb 100644 --- a/plugins/image_gen/openai-codex/__init__.py +++ b/plugins/image_gen/openai-codex/__init__.py @@ -73,7 +73,7 @@ _SIZES = { # Codex Responses surface used for the request. The chat model itself is only # the host that calls the ``image_generation`` tool; the actual image work is # done by ``API_MODEL``. -_CODEX_CHAT_MODEL = "gpt-5.4" +_CODEX_CHAT_MODEL = "gpt-5.5" _CODEX_BASE_URL = "https://chatgpt.com/backend-api/codex" _CODEX_INSTRUCTIONS = ( "You are an assistant that must fulfill image generation requests by " diff --git a/tests/plugins/image_gen/test_openai_codex_provider.py b/tests/plugins/image_gen/test_openai_codex_provider.py index 2940b300b36..a3eb01f2374 100644 --- a/tests/plugins/image_gen/test_openai_codex_provider.py +++ b/tests/plugins/image_gen/test_openai_codex_provider.py @@ -142,7 +142,7 @@ class TestGenerate: result = provider.generate("a cat", aspect_ratio="portrait") assert result["success"] is True - assert captured["model"] == "gpt-5.4" + assert captured["model"] == "gpt-5.5" assert captured["store"] is False assert captured["input"][0]["type"] == "message" assert captured["input"][0]["role"] == "user"