Skip to content

fix: add gpt-4.5-preview to vision model detection#6746

Open
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
octo-patch:fix/gpt-4.5-vision-model-detection
Open

fix: add gpt-4.5-preview to vision model detection#6746
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
octo-patch:fix/gpt-4.5-vision-model-detection

Conversation

@octo-patch
Copy link
Copy Markdown

Problem

gpt-4.5-preview and gpt-4.5-preview-2025-02-27 were added to the model list in a previous PR (#6450) but the VISION_MODEL_REGEXES in app/constant.ts was only updated with the gpt-4.1 regex — the gpt-4.5 family 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/ to VISION_MODEL_REGEXES so that gpt-4.5-preview and gpt-4.5-preview-2025-02-27 are correctly identified as vision-capable models and the image upload button is shown.

Testing

  • Verified that isVisionModel("gpt-4.5-preview") now returns true
  • Verified that isVisionModel("gpt-4.5-preview-2025-02-27") now returns true
  • Existing models unaffected: gpt-4o, gpt-4.1, gpt-4-turbo-preview (should still be excluded from vision) all behave correctly

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant