mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix some of the logic for generation aborting
This commit is contained in:
10
aiserver.py
10
aiserver.py
@ -1708,8 +1708,9 @@ def get_message(msg):
|
||||
# Submit action
|
||||
if(msg['cmd'] == 'submit'):
|
||||
if(vars.mode == "play"):
|
||||
if(vars.aibusy and msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
if(vars.aibusy):
|
||||
if(msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
return
|
||||
vars.abort = False
|
||||
vars.lua_koboldbridge.feedback = None
|
||||
@ -1727,8 +1728,9 @@ def get_message(msg):
|
||||
memsubmit(msg['data'])
|
||||
# Retry Action
|
||||
elif(msg['cmd'] == 'retry'):
|
||||
if(vars.aibusy and msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
if(vars.aibusy):
|
||||
if(msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
return
|
||||
vars.abort = False
|
||||
if(vars.chatmode):
|
||||
|
Reference in New Issue
Block a user