Skip to content

[Platform] Fix OpenAI image generation by routing gpt-image models to the image bridge#2224

Open
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:fix-dalle
Open

[Platform] Fix OpenAI image generation by routing gpt-image models to the image bridge#2224
chr-hertel wants to merge 1 commit into
symfony:mainfrom
chr-hertel:fix-dalle

Conversation

@chr-hertel

Copy link
Copy Markdown
Member
Q A
Bug fix? yes
New feature? no
Docs? no
Issues -
License MIT

OpenAI retired the DALL-E models, so the image examples are broken: dall-e-3 now returns "model does not exist" and the images endpoint rejects response_format outright. The replacement gpt-image-* models were already in the catalog but classified as chat models, so they were routed to the Responses API instead of /v1/images/generations.

This routes the gpt-image-* models to the OpenAI image bridge:

  • ModelCatalog: gpt-image-1, -mini, -1.5, -2 now map to DallE with INPUT_TEXT + OUTPUT_IMAGE.
  • CapabilityMapper::isImageGenerationModel() + a generator rule in dev/update-model-catalogs.php, so a catalog refresh keeps the mapping.
  • DallE\ResultConverter tolerates a missing response_format (gpt-image always returns base64).
  • Replaced the retired image-output-dall-e-{2,3}.php examples with image-output-gpt-image-1.php and image-output-gpt-image-1-mini.php.

Both examples were verified against the live API and produced valid PNGs.

… the image bridge

OpenAI retired the DALL-E models and removed the `response_format` parameter
from the images endpoint. The replacement `gpt-image-*` models were classified
as chat models and sent to the Responses API, so image generation failed.

Route the gpt-image models to the OpenAI image bridge in both the static
catalog and the catalog generator (so a refresh keeps the mapping), tolerate a
missing `response_format` in the result converter (gpt-image always returns
base64), and replace the retired dall-e examples with gpt-image ones.
@chr-hertel chr-hertel requested a review from OskarStark as a code owner June 22, 2026 23:16
@carsonbot carsonbot added Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants