Chat mode cleanup

This commit is contained in:
ebolam
2022-10-13 10:46:42 -04:00
parent 300e5f8a7c
commit fbc7a3ff3d
2 changed files with 6 additions and 4 deletions

View File

@@ -6142,6 +6142,9 @@ def applyoutputformatting(txt, no_sentence_trimming=False):
# Replace blank lines
if(koboldai_vars.frmtrmblln or koboldai_vars.chatmode):
txt = utils.replaceblanklines(txt)
# trim off starting new lines in replies if we're in chat mode
if koboldai_vars.chatmode and txt[0] == "\n":
txt = txt[1:]
# Remove special characters
if(koboldai_vars.frmtrmspch):
txt = utils.removespecialchars(txt, koboldai_vars)