Bugfix for InferKit submit failing when starting new story.

This commit is contained in:
KoboldAI Dev 2021-05-29 20:43:30 -04:00
parent bed1eba6eb
commit 65ad0e01e3

View File

@ -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:]