add o1 model

This commit is contained in:
sijinhui
2024-09-14 17:57:07 +08:00
parent 8d28155c86
commit 03731c74e3
5 changed files with 10 additions and 32 deletions

View File

@@ -23,9 +23,9 @@ export function useAllModels() {
]);
// @ts-expect-error
if (status === "authenticated" && !session?.user?.isAdmin) {
// 过滤非管理员用户可使用的模型
return models.filter((m) => !m.name.endsWith("-all"));
}
// if (status === "authenticated" && !session?.user?.isAdmin) {
// // TODO: 过滤非管理员用户可使用的模型
// return models.filter((m) => !m.name.endsWith("-all"));
// }
return models;
}