Repository navigation
fix(examples): use gpt-image-2.5-flare in the OpenAI image generation example - #1109
Merged
marandaneto merged 1 commit intoOct 23, 2026
Conversation
Contributor
|
Thanks @pcbeingused333, can you make sure all your commits are signed and verified in this repo too? You can |
… example OpenAI shuts down gpt-image-1 on 2026-10-23 and lists gpt-image-2.5-sunburst or gpt-image-2.5-flare as the replacement (https://developers.openai.com/api/docs/deprecations). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
pcbeingused333
force-pushed
the
fix/example-image-model-gpt-image-2-5
branch
from
October 23, 2026 06:52
0af158d to
66692b2
Compare
Contributor
Author
|
Thanks @turnipdabeets, the commits on this branch are now signed and show as verified (same content, re-signed only). |
marandaneto
approved these changes
Oct 23, 2026
marandaneto
enabled auto-merge (squash)
October 23, 2026 10:40
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.
💡 Motivation and Context
examples/example-ai-openai/image_generation.pycallsgpt-image-1, which OpenAI shuts down on 2026-10-23 (https://developers.openai.com/api/docs/deprecations listsgpt-image-2.5-sunburstorgpt-image-2.5-flareas the replacements). After that date the example fails with a model-not-found error.The example now uses
gpt-image-2.5-flare. The prompt,size="1024x1024"and theb64_jsonread are unchanged. No library code changes.💚 How did you test it?
Not run against the live OpenAI API: this is a one-line model name change in an example, and the request shape is the same one the example already sent to
gpt-image-1. If the new model needs a differentsizeor response format, the example will say so on first run and the follow-up is one line.📝 Checklist
🤖 Agent context
Autonomy: Fully autonomous
Claude Code (Anthropic) found and made the change; the model mapping comes from OpenAI's deprecations page, and the example was not executed. Nothing else in the repository references
gpt-image-1.