Skip to content

fix: default image generation to gpt-image-2.6-flare - #60

Merged
Perdikis10 merged 4 commits into
AlysisAi:mainfrom
AyhamJo7:fix/image-model-default
Nov 27, 2026
Merged

Perdikis10 merged 4 commits into
AlysisAi:mainfrom
AyhamJo7:fix/image-model-default

Conversation

@AyhamJo7

@AyhamJo7 AyhamJo7 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

ImageGenerationConfig.model defaulted to gpt-image-1, which OpenAI retired on 2026-10-23 (deprecations; the replacement is gpt-image-2). Enabling image generation without choosing a model therefore failed on the first call. The default is now gpt-image-2.6-flare. I first used gpt-image-2, but OpenAI shuts that down on 2027-02-10 and names gpt-image-2.6-flare or -sunburst as 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.model default gpt-image-1 → gpt-image-2.6-flare.
  • docs/subagents.md: the alysis config set image_generation.model example names gpt-image-2.6-flare.
  • New tests/test_image_generation_default_model.py: the enabled config's default is gpt-image-2.6-flare and not a retired or retiring id, and an explicitly configured model is kept.

The LiteLLM price snapshot and tests/test_provider_model_catalog.py only list gpt-image-1 as a catalog entry, so they stay.

Test plan

  • uv run pytest -q passes 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 check on the changed Python files is clean
  • uv run ruff format --check on the changed Python files is clean
  • Manual smoke test: no live image request was sent.

Linked issues

None.

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.
@AyhamJo7 AyhamJo7 changed the title fix: default image generation to gpt-image-2 fix: default image generation to gpt-image-2.6-flare Nov 23, 2026
@Perdikis10
Perdikis10 merged commit 75ef332 into AlysisAi:main Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants