diff --git a/public/scripts/poe.js b/public/scripts/poe.js index 0b0ef99cd..5763f0b0c 100644 --- a/public/scripts/poe.js +++ b/public/scripts/poe.js @@ -130,7 +130,7 @@ async function generatePoe(type, finalPrompt) { // If prompt overflows the max context, reduce it (or the generation would fail) // Split by sentence boundary and remove sentence-by-sentence from the beginning while (getTokenCount(finalPrompt) > max_context) { - const sentences = finalPrompt.split(/(?