Skip to content

Commit

Permalink
fix: vision model dalle3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Nov 4, 2024
1 parent d66bfc6 commit 2d3f7c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ export function isVisionModel(model: string) {
model.includes("gpt-4-turbo") && !model.includes("preview");

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

Expand Down

0 comments on commit 2d3f7c9

Please sign in to comment.