Merge pull request #4706 from leo4life2/patch-1

gpt-4o as vision model
This commit is contained in:
fred-bf 2024-05-16 14:09:58 +08:00 committed by GitHub
commit bffd9d9173
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,6 +297,7 @@ export function isVisionModel(model: string) {
"claude-3",
"gemini-1.5-pro",
"gemini-1.5-flash",
"gpt-4o",
];
const isGpt4Turbo =
model.includes("gpt-4-turbo") && !model.includes("preview");