Skip to content

Commit

Permalink
⚡️ again, improve image support autodetection
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Apr 18, 2024
1 parent 91b4ce2 commit b50c327
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/llm/autodetect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,17 @@ const MODEL_SUPPORTS_IMAGES: string[] = [
"claude-3",
"gemini-ultra",
"gemini-1.5-pro",
"sonnet",
"opus",
"haiku",
];

function modelSupportsImages(provider: ModelProvider, model: string): boolean {
if (!PROVIDER_SUPPORTS_IMAGES.includes(provider)) {
return false;
}

if (MODEL_SUPPORTS_IMAGES.includes(model)) {
if (MODEL_SUPPORTS_IMAGES.includes(model.toLowerCase())) {
return true;
}

Expand Down

0 comments on commit b50c327

Please sign in to comment.