feat: support other type file upload

This commit is contained in:
Hk-Gosuto
2024-03-31 23:07:17 +08:00
parent aea5bedb68
commit 80a077a3db
9 changed files with 223 additions and 33 deletions

View File

@@ -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,
);
}