fix: revert gpt-4-turbo-preview detection

This commit is contained in:
fred-bf 2024-05-14 14:32:34 +08:00 committed by GitHub
parent ef5f910f19
commit 5df8b1d183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -297,6 +297,10 @@ export function isVisionModel(model: string) {
"gpt-4-turbo", "gpt-4-turbo",
"gpt-4o", "gpt-4o",
]; ];
const isGpt4TurboPreview = model === "gpt-4-turbo-preview";
return visionKeywords.some((keyword) => model.includes(keyword)); return (
} visionKeywords.some((keyword) => model.includes(keyword)) &&
!isGpt4TurboPreview
);
}