fix: add gpt-4.5-preview to vision model detection#6746
Open
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Open
fix: add gpt-4.5-preview to vision model detection#6746octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Conversation
gpt-4.5-preview and gpt-4.5-preview-2025-02-27 support image input but were missing from VISION_MODEL_REGEXES, causing the image upload button to not appear when these models are selected.
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.
Problem
gpt-4.5-previewandgpt-4.5-preview-2025-02-27were added to the model list in a previous PR (#6450) but theVISION_MODEL_REGEXESinapp/constant.tswas only updated with thegpt-4.1regex — thegpt-4.5family was overlooked.As a result, when a user selects either of these models, the image upload button does not appear in the chat interface, even though both models support multimodal (image) input.
Solution
Added
/gpt-4\.5/toVISION_MODEL_REGEXESso thatgpt-4.5-previewandgpt-4.5-preview-2025-02-27are correctly identified as vision-capable models and the image upload button is shown.Testing
isVisionModel("gpt-4.5-preview")now returnstrueisVisionModel("gpt-4.5-preview-2025-02-27")now returnstruegpt-4o,gpt-4.1,gpt-4-turbo-preview(should still be excluded from vision) all behave correctly