mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 14:30:17 +08:00
fix: footnote
This commit is contained in:
parent
3c0dffcdd1
commit
bb57e3f79f
@ -78,7 +78,8 @@ ${references}
|
||||
// Check if correction is needed
|
||||
const needsCorrection =
|
||||
(footnotes.length === answer.references.length && footnotes.every(n => n === footnotes[0])) ||
|
||||
(footnotes.every(n => n === footnotes[0]) && parseInt(footnotes[0]) > answer.references.length);
|
||||
(footnotes.every(n => n === footnotes[0]) && parseInt(footnotes[0]) > answer.references.length) ||
|
||||
(footnotes.length > 0 && footnotes.every(n => parseInt(n) > answer.references.length));
|
||||
|
||||
// New case: we have more references than footnotes
|
||||
if (answer.references.length > footnotes.length && !needsCorrection) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user