Update lollms_client_js.js

This commit is contained in:
Saifeddine ALOUI 2024-12-02 08:55:13 +01:00 committed by GitHub
parent 1092380894
commit cb4549bab8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1037,7 +1037,7 @@ async summarizeText(
return text;
}
async smartDataExtraction({
async smartDataExtraction(
text,
dataExtractionInstruction = "summarize the current chunk.",
finalTaskInstruction = "reformulate with better wording",
@ -1048,7 +1048,7 @@ async smartDataExtraction({
callback = null,
chunkSummaryPostProcessing = null,
summaryMode = "SEQUENTIAL"
}) {
) {
let tk = await this.tokenize(text);
let prevLen = tk.length;