mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +08:00
add o1 model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user