mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-04-24 06:57:33 +02: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
|
budget = vars.ikmax - len(anotetxt) - len(mem) - len(winfo) - 1
|
||||||
|
|
||||||
subtxt = ""
|
subtxt = ""
|
||||||
|
prompt = vars.prompt
|
||||||
for n in range(actionlen):
|
for n in range(actionlen):
|
||||||
|
|
||||||
if(budget <= 0):
|
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,
|
# If we're not using the prompt every time and there's still budget left,
|
||||||
# add some prompt.
|
# add some prompt.
|
||||||
prompt = vars.prompt
|
|
||||||
if(not vars.useprompt):
|
if(not vars.useprompt):
|
||||||
if(budget > 0):
|
if(budget > 0):
|
||||||
prompt = vars.prompt[-budget:]
|
prompt = vars.prompt[-budget:]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user