diff --git a/app/utils.ts b/app/utils.ts index efcc8c197fe..d67346a2349 100644 --- a/app/utils.ts +++ b/app/utils.ts @@ -297,6 +297,10 @@ export function isVisionModel(model: string) { "gpt-4-turbo", "gpt-4o", ]; + const isGpt4TurboPreview = model === "gpt-4-turbo-preview"; - return visionKeywords.some((keyword) => model.includes(keyword)); -} \ No newline at end of file + return ( + visionKeywords.some((keyword) => model.includes(keyword)) && + !isGpt4TurboPreview + ); +}