feat(server): get full content for doc embedding (#11138)

This commit is contained in:
darkskygit
2025-03-25 01:10:43 +00:00
parent c1b3e25fc7
commit bf5d8b1211
3 changed files with 18 additions and 7 deletions

View File

@@ -115,7 +115,9 @@ export function parsePageDoc(
continue;
}
if (summaryLenNeeded > 0) {
if (summaryLenNeeded === -1) {
content.summary += text.toString();
} else if (summaryLenNeeded > 0) {
content.summary += text.toString();
summaryLenNeeded -= text.length;
} else {