Repository navigation
fix: default image generation to gpt-image-2.6-flare - #60
Merged
Merged
Conversation
ImageGenerationConfig.model defaulted to gpt-image-1, which OpenAI retired on 2026-10-23, so enabling image generation without choosing a model failed on the first call. The default is now gpt-image-2, and the docs example names it.
OpenAI shuts gpt-image-2 down on 2027-02-10 and names gpt-image-2.6-flare or -sunburst as the replacement; its image guide recommends the 2.6 models for new integrations. Flare is the general, fast-iteration model on the same Images API, so the default moves to it instead of to another retiring model.
ruff format wraps the long assertion added in the previous commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ImageGenerationConfig.modeldefaulted togpt-image-1, which OpenAI retired on 2026-10-23 (deprecations; the replacement isgpt-image-2). Enabling image generation without choosing a model therefore failed on the first call. The default is nowgpt-image-2.6-flare. I first usedgpt-image-2, but OpenAI shuts that down on 2027-02-10 and namesgpt-image-2.6-flareor-sunburstas the replacement, and its image guide recommends the 2.6 models for new integrations. Flare is the general, fast-iteration one on the same Images API.Changes
src/alysis_code/config.py:ImageGenerationConfig.modeldefaultgpt-image-1→gpt-image-2.6-flare.docs/subagents.md: thealysis config set image_generation.modelexample namesgpt-image-2.6-flare.tests/test_image_generation_default_model.py: the enabled config's default isgpt-image-2.6-flareand not a retired or retiring id, and an explicitly configured model is kept.The LiteLLM price snapshot and
tests/test_provider_model_catalog.pyonly listgpt-image-1as a catalog entry, so they stay.Test plan
uv run pytest -qpasses locally: I ran the targeted files, not the whole suite.uv run --all-extras pytest -q tests/test_image_generation_default_model.py tests/test_bots_owl_images.py tests/test_provider_model_catalog.py: 55 passed. The new default test failed before the change.uv run ruff checkon the changed Python files is cleanuv run ruff format --checkon the changed Python files is cleanLinked issues
None.