From 4c653a5749247407c3c8ab54e4f164a9c8b0848b Mon Sep 17 00:00:00 2001 From: CrystalVibe28 <82704512+CrystalVibe28@users.noreply.github.com> Date: Thu, 14 May 2026 22:56:12 +0800 Subject: [PATCH] docs: document chatgpt image responses fallback --- litellm/llms/chatgpt/image_generation/transformation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/chatgpt/image_generation/transformation.py b/litellm/llms/chatgpt/image_generation/transformation.py index bd78f36e997..b164a05a0b8 100644 --- a/litellm/llms/chatgpt/image_generation/transformation.py +++ b/litellm/llms/chatgpt/image_generation/transformation.py @@ -144,6 +144,10 @@ class ChatGPTImageGenerationConfig(BaseImageGenerationConfig): ) -> dict: self._validate_openai_image_generation_params(model, optional_params) + # Intentionally pinned fallback for ChatGPT image generation through the + # Codex Responses API. Users can override this per request, via + # litellm_params, or with CHATGPT_IMAGE_RESPONSES_MODEL without requiring + # a LiteLLM release. responses_model = ( optional_params.pop("chatgpt_responses_model", None) or litellm_params.get("chatgpt_responses_model")