From 819937426dd3ea930ed55564eea1c4b3b82021b2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 16 Apr 2024 22:39:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20update=20to=20support=20images?= =?UTF-8?q?=20for=20gpt-4-turbo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/autodetect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index fe71ad4a7..9a2cb2f1c 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -63,7 +63,7 @@ function modelSupportsImages(provider: ModelProvider, model: string): boolean { return true; } - if (["gpt-4-vision-preview", "gpt-4-turbo"].includes(model)) { + if (model.startsWith("gpt-4-turbo") || model.startsWith("gpt-4-vision")) { return true; }