mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix
This commit is contained in:
parent
4cedd57fcc
commit
f1b9b2f55e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user