Add under-development original-resolution view_image support#13050
Merged
Add under-development original-resolution view_image support#13050
Conversation
ab3e4c2 to
f884292
Compare
d76212d to
5a9d457
Compare
d4d8af6 to
36df309
Compare
This was referenced Mar 3, 2026
Contributor
Author
|
@codex review |
Contributor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 36df3090c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
22db189 to
4a379cf
Compare
pakrym-oai
reviewed
Mar 3, 2026
pakrym-oai
reviewed
Mar 3, 2026
pakrym-oai
reviewed
Mar 3, 2026
pakrym-oai
reviewed
Mar 3, 2026
pakrym-oai
reviewed
Mar 3, 2026
a63c1f8 to
7ca1b75
Compare
pakrym-oai
reviewed
Mar 3, 2026
pakrym-oai
approved these changes
Mar 3, 2026
a11ea96 to
2be02bb
Compare
git-stack-id: fjord/original_image_res---4hw7wu3447irye git-stack-title: Add under-development original-resolution view_image support
2be02bb to
2a3bc40
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Add original-resolution support for
view_imagebehind the under-developmentview_image_original_resolutionfeature flag.When the flag is enabled and the target model is
gpt-5.3-codexor newer,view_imagenow preserves original PNG/JPEG/WebP bytes and sendsdetail: "original"to the Responses API instead of using the legacy resize/compress path.What changed
view_image_original_resolutionas an under-development feature flag.ImageDetailto the protocol models and support for serializingdetail: "original"on tool-returned images.PromptImageMode::Originaltocodex-utils-image.view_imageto:local_image_content_items_with_label_number(...)helper in both code pathsgpt-5.3-codexor newerview_image.detail: "original"images use the docs-based GPT-5 image cost calculation; legacy images still use the old fixed estimate.FunctionCallOutputContentItem::InputImageto carry the newdetailfield.Behavior
Feature off
view_imagekeeps the existing resize/re-encode behavior.Feature on +
gpt-5.3-codex+view_imagesends original-resolution images withdetail: "original".detail: "original"images.git stack
1Add under-development original-resolution view_image support #130502Make js_repl image output controllable #133313Enforce the Responses API 50 MB image limit #13049