This commit is contained in:
archer
2023-07-19 08:11:14 +08:00
parent 7fe2017ab6
commit 58cbf10c85
6 changed files with 41 additions and 65 deletions

View File

@@ -125,6 +125,10 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
billId
});
if (!answerText) {
throw new Error('回复内容为空,可能模块编排出现问题');
}
// save chat
if (typeof chatId === 'string') {
await saveChat({