From 9726d12ede27bd3b214c412f48cc8dc9c4f66f1c Mon Sep 17 00:00:00 2001 From: somebody Date: Wed, 19 Jul 2023 13:05:35 -0500 Subject: [PATCH] API: Fix /story/end (POST) --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index 153e6d07..6e55b943 100644 --- a/aiserver.py +++ b/aiserver.py @@ -3265,9 +3265,9 @@ def check_for_backend_compilation(): def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False, disable_recentrng=False, no_generate=False, ignore_aibusy=False): # Ignore new submissions if the AI is currently busy - if(koboldai_vars.aibusy): + if koboldai_vars.aibusy and not ignore_aibusy: return - + while(True): set_aibusy(1) koboldai_vars.actions.clear_unused_options()