mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for blank chat mode data causing crashes
This commit is contained in:
@@ -6203,6 +6203,8 @@ def applyinputformatting(txt):
|
||||
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), "")
|
||||
if len(txt) == 0:
|
||||
return txt
|
||||
|
||||
# Use standard quotes and apostrophes
|
||||
txt = utils.fixquotes(txt)
|
||||
|
Reference in New Issue
Block a user