mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for chat mode trimming
This commit is contained in:
@@ -6201,6 +6201,9 @@ def applyinputformatting(txt):
|
|||||||
# Applies chosen formatting options to text returned from AI
|
# Applies chosen formatting options to text returned from AI
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
def applyoutputformatting(txt, no_sentence_trimming=False):
|
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
|
# Use standard quotes and apostrophes
|
||||||
txt = utils.fixquotes(txt)
|
txt = utils.fixquotes(txt)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user