mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-10 16:50:45 +01:00
Bugfix for InferKit submit failing when starting new story.
This commit is contained in:
parent
bed1eba6eb
commit
65ad0e01e3
@ -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:]
|
||||
|
Loading…
x
Reference in New Issue
Block a user