chore: first commit

This commit is contained in:
Han Xiao
2025-01-30 21:08:23 +08:00
parent 712d01215c
commit dfe38fba7f

View File

@@ -354,7 +354,7 @@ async function getResponse(question: string, tokenBudget: number = 1000000) {
if (currentQuestion === question) {
if (evaluation.is_valid_answer) {
if (action.references.length > 0) {
if (action.references.length > 0 || Object.keys(allURLs).length === 0) {
// EXIT POINT OF THE PROGRAM!!!!
diaryContext.push(`
At step ${step}, you took **answer** action and finally found the answer to the original question: