mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
chore: first commit
This commit is contained in:
parent
cd7b9a6095
commit
c984e78ac2
@ -262,7 +262,7 @@ function removeAllLineBreaks(text: string) {
|
||||
return text.replace(/(\r\n|\n|\r)/gm, " ");
|
||||
}
|
||||
|
||||
async function getResponse(question: string, tokenBudget: number = 1000000, maxBadAttempts: number = 3) {
|
||||
async function getResponse(question: string, tokenBudget: number = 1_000_000, maxBadAttempts: number = 3) {
|
||||
let step = 0;
|
||||
let totalStep = 0;
|
||||
let badAttempts = 0;
|
||||
@ -613,6 +613,7 @@ You decided to think out of the box or cut from a completely different angle.`);
|
||||
if (isAnswered) {
|
||||
return thisStep;
|
||||
} else {
|
||||
console.log('Enter Beast mode!!!')
|
||||
const prompt = getPrompt(
|
||||
question,
|
||||
diaryContext,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user