From 488268f9ba468cab41d88a21f2fd8bd56d1eab3c Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Sun, 16 Apr 2023 14:08:00 +0300 Subject: [PATCH] Fix startup on safari / ios --- public/scripts/poe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(/(?