diff --git a/src/pages/api/model/create.ts b/src/pages/api/model/create.ts index 79af70d47..bb8b60d31 100644 --- a/src/pages/api/model/create.ts +++ b/src/pages/api/model/create.ts @@ -43,8 +43,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse< const authCount = await Model.countDocuments({ userId }); - if (authCount >= 5) { - throw new Error('上限5个模型'); + if (authCount >= 10) { + throw new Error('上限 10 个模型'); } // 创建模型 diff --git a/src/pages/chat/components/SlideBar.tsx b/src/pages/chat/components/SlideBar.tsx index b2cdfd42f..6341e7815 100644 --- a/src/pages/chat/components/SlideBar.tsx +++ b/src/pages/chat/components/SlideBar.tsx @@ -98,17 +98,18 @@ const SlideBar = ({ flexDirection={'column'} w={'100%'} h={'100%'} - p={3} + py={3} backgroundColor={'blackAlpha.800'} color={'white'} > {/* 新对话 */} {getToken() && (