From a942d8b6c01dba50b607b5ce7b8e5ff14a3357b1 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Fri, 10 Apr 2026 11:57:51 +0800 Subject: [PATCH] fix: add gpt-4.5-preview to vision model detection 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. --- app/constant.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/constant.ts b/app/constant.ts index db9842d6027..3066e5422df 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -479,6 +479,7 @@ export const VISION_MODEL_REGEXES = [ /vision/, /gpt-4o/, /gpt-4\.1/, + /gpt-4\.5/, /claude.*[34]/, /gemini-1\.5/, /gemini-exp/,