mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 20:53:45 +08:00
feat: support other type file upload
This commit is contained in:
@@ -296,3 +296,9 @@ export function isVisionModel(model: string) {
|
||||
|
||||
return visionKeywords.some((keyword) => model.includes(keyword));
|
||||
}
|
||||
|
||||
export function isSupportRAGModel(modelName: string) {
|
||||
return DEFAULT_MODELS.filter((model) => model.provider.id === "openai").some(
|
||||
(model) => model.name === modelName,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user