mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix the global allContext issue
This commit is contained in:
@@ -192,6 +192,8 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
|
||||
}
|
||||
).catch((err: any) => {
|
||||
logger.warn(`Failed to save promptContext`, { err: marshalErrorLike(err) });
|
||||
}).finally(() => {
|
||||
ctx.promptContext = undefined;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -211,10 +213,6 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
|
||||
if (err.stack) {
|
||||
logger.error(err.stack);
|
||||
}
|
||||
} finally {
|
||||
if (ctx.promptContext) {
|
||||
ctx.promptContext = null;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user