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