mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix
This commit is contained in:
@@ -154,7 +154,7 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
|
|||||||
chargeAmount,
|
chargeAmount,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (uid && ctx.promptContext.knowledge?.length) {
|
if (uid && ctx.promptContext?.knowledge?.length) {
|
||||||
Promise.all(ctx.promptContext.knowledge.map((x: any) => KnowledgeItem.save(
|
Promise.all(ctx.promptContext.knowledge.map((x: any) => KnowledgeItem.save(
|
||||||
KnowledgeItem.from({
|
KnowledgeItem.from({
|
||||||
...x,
|
...x,
|
||||||
|
|||||||
Reference in New Issue
Block a user