mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 18:48:55 +00:00
fix: time conf
This commit is contained in:
@@ -32,8 +32,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
chatId?: string;
|
||||
};
|
||||
|
||||
if (!modelId || !prompt) {
|
||||
throw new Error('缺少参数');
|
||||
if (!modelId || !prompt || prompt.length !== 2) {
|
||||
throw new Error('Chat 缺少参数');
|
||||
}
|
||||
|
||||
await connectToDatabase();
|
||||
|
Reference in New Issue
Block a user