mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-08 07:48:39 +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
|
# Applies chosen formatting options to text submitted to AI
|
||||||
#==================================================================#
|
#==================================================================#
|
||||||
def applyinputformatting(txt):
|
def applyinputformatting(txt):
|
||||||
|
if(vars.disable_input_formatting):
|
||||||
|
return txt
|
||||||
|
|
||||||
# Add sentence spacing
|
# Add sentence spacing
|
||||||
if(vars.formatoptns["frmtadsnsp"]):
|
if(vars.formatoptns["frmtadsnsp"]):
|
||||||
txt = utils.addsentencespacing(txt, vars)
|
txt = utils.addsentencespacing(txt, vars)
|
||||||
@ -4837,6 +4840,9 @@ def applyoutputformatting(txt):
|
|||||||
# Use standard quotes and apostrophes
|
# Use standard quotes and apostrophes
|
||||||
txt = utils.fixquotes(txt)
|
txt = utils.fixquotes(txt)
|
||||||
|
|
||||||
|
if(vars.disable_output_formatting):
|
||||||
|
return txt
|
||||||
|
|
||||||
# Adventure mode clipping of all characters after '>'
|
# Adventure mode clipping of all characters after '>'
|
||||||
if(vars.adventure):
|
if(vars.adventure):
|
||||||
txt = vars.acregex_ai.sub('', txt)
|
txt = vars.acregex_ai.sub('', txt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user