From 36722eacaaa9a8efeda369a79dbd906afac8e237 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Wed, 5 Feb 2025 16:11:12 +0800 Subject: [PATCH] feat: use s.jina.ai for search --- src/agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent.ts b/src/agent.ts index defc8a4..2b0616c 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -339,7 +339,7 @@ export async function getResponse(question: string, tokenBudget: number = 1_000_ const currentQuestion = gaps.length > 0 ? gaps.shift()! : question; // update all urls with buildURLMap allowRead = allowRead && (Object.keys(allURLs).length > 0); - allowSearch = allowSearch && (Object.keys(allURLs).length < 20); // disable search when too many urls already + allowSearch = allowSearch && (Object.keys(allURLs).length < 50); // disable search when too many urls already // generate prompt for this step prompt = getPrompt(