mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Chat mode cleanup
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user