mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Chatmode improvements
Blank lines appear often in chatmode so it is best played with blank line removal turned on, this is now forced. Its not compatible with Adventure mode, so they now turn each other off.
This commit is contained in:
@ -1866,10 +1866,12 @@ def get_message(msg):
|
||||
refresh_settings()
|
||||
elif(msg['cmd'] == 'setadventure'):
|
||||
vars.adventure = msg['data']
|
||||
vars.chatmode = False
|
||||
settingschanged()
|
||||
refresh_settings()
|
||||
elif(msg['cmd'] == 'setchatmode'):
|
||||
vars.chatmode = msg['data']
|
||||
vars.adventure = False
|
||||
settingschanged()
|
||||
refresh_settings()
|
||||
elif(msg['cmd'] == 'setdynamicscan'):
|
||||
@ -2896,7 +2898,7 @@ def applyoutputformatting(txt):
|
||||
if(vars.formatoptns["frmttriminc"] and not vars.chatmode):
|
||||
txt = utils.trimincompletesentence(txt)
|
||||
# Replace blank lines
|
||||
if(vars.formatoptns["frmtrmblln"]):
|
||||
if(vars.formatoptns["frmtrmblln"] or vars.chatmode):
|
||||
txt = utils.replaceblanklines(txt)
|
||||
# Remove special characters
|
||||
if(vars.formatoptns["frmtrmspch"]):
|
||||
|
Reference in New Issue
Block a user