This commit is contained in:
archer
2023-06-12 20:52:51 +08:00
parent 36a0ea7e43
commit ca4cd8af9d
9 changed files with 12 additions and 12 deletions

View File

@@ -73,7 +73,7 @@ export default withNextCors(async function handler(req: NextApiRequest, res: Nex
}[] = [];
// 使用了知识库搜索
if (model.chat.relatedKbs.length > 0) {
if (model.chat.relatedKbs?.length > 0) {
const { code, searchPrompts } = await appKbSearch({
model,
userId,