This commit is contained in:
Yanlong Wang 2025-02-27 16:38:42 +08:00
parent 4cedd57fcc
commit f1b9b2f55e
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -154,7 +154,7 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
chargeAmount,
});
if (uid && ctx.promptContext.knowledge?.length) {
if (uid && ctx.promptContext?.knowledge?.length) {
Promise.all(ctx.promptContext.knowledge.map((x: any) => KnowledgeItem.save(
KnowledgeItem.from({
...x,