mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
Update lollms_client_js.js
This commit is contained in:
parent
f7314d46f6
commit
0293355386
@ -1114,7 +1114,7 @@ class TextChunker {
|
||||
while (start < tokens.length) {
|
||||
const end = Math.min(start + chunkSize, tokens.length);
|
||||
const chunkTokens = tokens.slice(start, end);
|
||||
const chunkText = tokenizer.detokenize(chunkTokens);
|
||||
const chunkText = await tokenizer.detokenize(chunkTokens);
|
||||
chunks.push(chunkText);
|
||||
|
||||
start += chunkSize - overlap; // Move start forward with overlap
|
||||
|
Loading…
Reference in New Issue
Block a user