mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-02 18:46:48 +01:00
Fix some of the logic for generation aborting
This commit is contained in:
parent
902b6b0cee
commit
43586c8f60
@ -1708,7 +1708,8 @@ def get_message(msg):
|
||||
# Submit action
|
||||
if(msg['cmd'] == 'submit'):
|
||||
if(vars.mode == "play"):
|
||||
if(vars.aibusy and msg.get('allowabort', False)):
|
||||
if(vars.aibusy):
|
||||
if(msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
return
|
||||
vars.abort = False
|
||||
@ -1727,7 +1728,8 @@ def get_message(msg):
|
||||
memsubmit(msg['data'])
|
||||
# Retry Action
|
||||
elif(msg['cmd'] == 'retry'):
|
||||
if(vars.aibusy and msg.get('allowabort', False)):
|
||||
if(vars.aibusy):
|
||||
if(msg.get('allowabort', False)):
|
||||
vars.abort = True
|
||||
return
|
||||
vars.abort = False
|
||||
|
@ -799,7 +799,7 @@ function formatChunkInnerText(chunk) {
|
||||
|
||||
function dosubmit(disallow_abort) {
|
||||
var txt = input_text.val().replace(/\u00a0/g, " ");
|
||||
if(gamestate !== "wait" && !memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
|
||||
if((disallow_abort || gamestate !== "wait") && !memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
|
||||
return;
|
||||
}
|
||||
input_text.val("");
|
||||
|
@ -17,7 +17,7 @@
|
||||
<script src="static/bootstrap.min.js"></script>
|
||||
<script src="static/bootstrap-toggle.min.js"></script>
|
||||
<script src="static/rangy-core.min.js"></script>
|
||||
<script src="static/application.js?ver=1.16.4w"></script>
|
||||
<script src="static/application.js?ver=1.16.4x"></script>
|
||||
</head>
|
||||
<body>
|
||||
<input type="file" id="remote-save-select" accept="application/json" style="display:none">
|
||||
|
Loading…
x
Reference in New Issue
Block a user