From 65ad0e01e3d435c3846e13e30a57eabe82c55314 Mon Sep 17 00:00:00 2001 From: KoboldAI Dev Date: Sat, 29 May 2021 20:43:30 -0400 Subject: [PATCH] Bugfix for InferKit submit failing when starting new story. --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 81c11275..7203b472 100644 --- a/aiserver.py +++ b/aiserver.py @@ -838,6 +838,7 @@ def calcsubmit(txt): budget = vars.ikmax - len(anotetxt) - len(mem) - len(winfo) - 1 subtxt = "" + prompt = vars.prompt for n in range(actionlen): if(budget <= 0): @@ -854,7 +855,6 @@ def calcsubmit(txt): # If we're not using the prompt every time and there's still budget left, # add some prompt. - prompt = vars.prompt if(not vars.useprompt): if(budget > 0): prompt = vars.prompt[-budget:]