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; }