mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
chore: first commit
This commit is contained in:
@@ -262,7 +262,7 @@ function removeAllLineBreaks(text: string) {
|
|||||||
return text.replace(/(\r\n|\n|\r)/gm, " ");
|
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 step = 0;
|
||||||
let totalStep = 0;
|
let totalStep = 0;
|
||||||
let badAttempts = 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) {
|
if (isAnswered) {
|
||||||
return thisStep;
|
return thisStep;
|
||||||
} else {
|
} else {
|
||||||
|
console.log('Enter Beast mode!!!')
|
||||||
const prompt = getPrompt(
|
const prompt = getPrompt(
|
||||||
question,
|
question,
|
||||||
diaryContext,
|
diaryContext,
|
||||||
|
|||||||
Reference in New Issue
Block a user