From 86838a3e8986b47492257646f45d445509314304 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Wed, 5 Feb 2025 15:26:12 +0800 Subject: [PATCH] feat: use s.jina.ai for search --- src/agent.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index 5b12011..8689f55 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -674,13 +674,15 @@ You decided to think out of the box or cut from a completely different angle.`); await storeContext(prompt, [allContext, allKeywords, allQuestions, allKnowledge], totalStep); } - step++; - totalStep++; + await storeContext(prompt, [allContext, allKeywords, allQuestions, allKnowledge], totalStep); if (isAnswered) { return {result: thisStep, context}; } else { console.log('Enter Beast mode!!!') + // any answer is better than no answer, humanity last resort + step ++; + totalStep ++; const prompt = getPrompt( question, diaryContext,