From f044f042d73cffd52211435e723138e93588db7e Mon Sep 17 00:00:00 2001 From: ebolam Date: Sun, 16 Oct 2022 18:30:44 -0400 Subject: [PATCH] Fix for chat mode trimming --- aiserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiserver.py b/aiserver.py index 347e1c33..e359049b 100644 --- a/aiserver.py +++ b/aiserver.py @@ -6201,6 +6201,9 @@ def applyinputformatting(txt): # Applies chosen formatting options to text returned from AI #==================================================================# def applyoutputformatting(txt, no_sentence_trimming=False): + #remove null ascii character (used to kill chat mode text in multi-generation) + txt = txt.replace(chr(0), "") + # Use standard quotes and apostrophes txt = utils.fixquotes(txt)