Update lollms_client_js.js

This commit is contained in:
Saifeddine ALOUI 2024-09-04 14:16:41 +02:00 committed by GitHub
parent b55f147039
commit 2b45ea6a04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -452,7 +452,7 @@ async tokenize(text) {
return await this.lollms.tokenize(text);
}
async summarizeText({
async summarizeText(
text,
summaryInstruction = "summarize",
docName = "chunk",
@ -462,7 +462,10 @@ async summarizeText({
callback = null,
chunkSummaryPostProcessing = null,
summaryMode = "SEQUENTIAL"
}) {
) {
console.log("Tokenizing:")
console.log(text)
let tk = await this.tokenize(text);
let prevLen = tk.length;
let documentChunks = null;