Skip to content

Commit

Permalink
feat: update vision model list
Browse files Browse the repository at this point in the history
  • Loading branch information
Hk-Gosuto committed Feb 14, 2025
1 parent f14e966 commit b1b8be6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,19 @@ export function isVisionModel(model: string) {
"gpt-4o",
"gpt-4o-mini",
];

var googleModels = DEFAULT_MODELS.filter(
(model) => model.provider.id === "google",
).map((model) => model.name);

const isGpt4Turbo =
model.includes("gpt-4-turbo") && !model.includes("preview");

return (
visionKeywords.some((keyword) => model.includes(keyword)) ||
isGpt4Turbo ||
isDalle3(model)
isDalle3(model) ||
googleModels.some((keyword) => model.includes(keyword))
);
}

Expand Down

0 comments on commit b1b8be6

Please sign in to comment.