[codex] support gpt-image-2 image generation#198
Draft
hxdflying wants to merge 1 commit into
Draft
Conversation
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
Adds OpenAI
gpt-image-2support to the image generation path and exposes the generation options needed to use it effectively.gpt-image-2in the OpenAI image provider and pass customwidthxheightsizes directlyqualitysupport and threadimage_qualitythrough settings, pipeline, andVisualizerAgentOUTPUT_RESOLUTION/IMAGE_QUALITYand loadimage.qualityfrom YAMLgpt-5.5and a conservativegpt-image-2per-image estimate for the existing cost tracker modeltemperaturefor GPT-5-family OpenAI VLM calls, which use the API defaultValidation
git diff --cached --checkpython3 -m pytest tests/test_config.py tests/test_agents/test_visualizer.py tests/test_features.py tests/test_cost_tracking.py- 94 passedpython3 -m pytest- 647 passed, 4 skipped, 1 warningNotes
gpt-image-2pricing is token-based, but PaperBanana currently records image generation pricing as a single per-image float. The added0.211value is a high-quality square-image estimate so cost tracking no longer treats the model as unknown.