mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-01 10:06:44 +01:00
vars.disable_input_formatting and vars.disable_output_formatting fix
This commit is contained in:
parent
3460e62271
commit
3b56859c12
@ -4824,6 +4824,9 @@ def getnewcontent(txt):
|
||||
# Applies chosen formatting options to text submitted to AI
|
||||
#==================================================================#
|
||||
def applyinputformatting(txt):
|
||||
if(vars.disable_input_formatting):
|
||||
return txt
|
||||
|
||||
# Add sentence spacing
|
||||
if(vars.formatoptns["frmtadsnsp"]):
|
||||
txt = utils.addsentencespacing(txt, vars)
|
||||
@ -4837,6 +4840,9 @@ def applyoutputformatting(txt):
|
||||
# Use standard quotes and apostrophes
|
||||
txt = utils.fixquotes(txt)
|
||||
|
||||
if(vars.disable_output_formatting):
|
||||
return txt
|
||||
|
||||
# Adventure mode clipping of all characters after '>'
|
||||
if(vars.adventure):
|
||||
txt = vars.acregex_ai.sub('', txt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user