This commit is contained in:
archer
2023-05-08 09:49:03 +08:00
parent b0402434e2
commit aeef1fca0c
2 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
chatId: '' | string;
};
const { authorization } = req.headers;
if (!modelId || !prompt) {
throw new Error('缺少参数');
}
@@ -46,7 +45,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
await authChat({
modelId,
chatId,
authorization
req
});
const modelConstantsData = ChatModelMap[model.chat.chatModel];