From 0f0070b56e7fa3624144d6c7d3a6f7d8d57fc3a7 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Tue, 22 Apr 2025 14:10:55 +0800 Subject: [PATCH] fix: update patch-express and agent implementation --- jina-ai/src/patch-express.ts | 2 +- src/agent.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/jina-ai/src/patch-express.ts b/jina-ai/src/patch-express.ts index 95c43f8..82a51d5 100644 --- a/jina-ai/src/patch-express.ts +++ b/jina-ai/src/patch-express.ts @@ -110,7 +110,7 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction } else { rateLimitPolicy = [ RateLimitDesc.from({ - occurrence: 2, + occurrence: 1, periodSeconds: 60 }) ] diff --git a/src/agent.ts b/src/agent.ts index 160df47..1e657c7 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -1003,11 +1003,7 @@ But unfortunately, you failed to solve the issue. You need to think out of the b await updateReferences(answerStep, allURLs) answerStep.mdAnswer = repairMarkdownFootnotesOuter(buildMdFromAnswer(answerStep)); } else { - answerStep.mdAnswer = - convertHtmlTablesToMd( - fixCodeBlockIndentation( - buildMdFromAnswer(answerStep)) - ); + answerStep.mdAnswer = buildMdFromAnswer(answerStep); } console.log(thisStep)