mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 06:30:16 +09:00
feat: update vision model list
This commit is contained in:
parent
117d8b4fb5
commit
657e44b501
@ -286,13 +286,19 @@ export function isVisionModel(model: string) {
|
|||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
"gpt-4o-mini",
|
"gpt-4o-mini",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var googleModels = DEFAULT_MODELS.filter(
|
||||||
|
(model) => model.provider.id === "google",
|
||||||
|
).map((model) => model.name);
|
||||||
|
|
||||||
const isGpt4Turbo =
|
const isGpt4Turbo =
|
||||||
model.includes("gpt-4-turbo") && !model.includes("preview");
|
model.includes("gpt-4-turbo") && !model.includes("preview");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
visionKeywords.some((keyword) => model.includes(keyword)) ||
|
visionKeywords.some((keyword) => model.includes(keyword)) ||
|
||||||
isGpt4Turbo ||
|
isGpt4Turbo ||
|
||||||
isDalle3(model)
|
isDalle3(model) ||
|
||||||
|
googleModels.some((keyword) => model.includes(keyword))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user