Add under-development original-resolution view_image support#13050
Open
Add under-development original-resolution view_image support#13050
Conversation
ab3e4c2 to
f884292
Compare
3a2afe9 to
d76212d
Compare
git-stack-id: fjord/original_image_res---4hw7wu3447irye git-stack-title: Add under-development original-resolution view_image support
d76212d to
5a9d457
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 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
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 #130502Enforce the Responses API 50 MB image limit #13049