Bound Queue prompt extraction request sizes

This commit is contained in:
m0rtus59
2026-11-10 16:16:56 +05:00
parent a23ba4fae2
commit 2286083b9b
+1 -1
View File
@@ -39,7 +39,7 @@ async function updatePromptSearchTexts(entries) {
let batch = [];
let batchSize = 0;
for (const entry of pending) {
const itemSize = JSON.stringify(entry).length;
const itemSize = JSON.stringify(entry).length * 3; // Conservative UTF-8 byte estimate
if (batch.length > 0 && (batch.length >= 32 || batchSize + itemSize > 512 * 1024)) {
batches.push(batch);
batch = [];