Skip to content

Commit

Permalink
fix: revert gpt-4-turbo-preview detection
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-bf committed May 14, 2024
1 parent ef5f910 commit 5df8b1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ export function isVisionModel(model: string) {
"gpt-4-turbo",
"gpt-4o",
];
const isGpt4TurboPreview = model === "gpt-4-turbo-preview";

return visionKeywords.some((keyword) => model.includes(keyword));
}
return (
visionKeywords.some((keyword) => model.includes(keyword)) &&
!isGpt4TurboPreview
);
}

0 comments on commit 5df8b1d

Please sign in to comment.