Fix budget calculation when using soft prompt
This commit is contained in:
parent
bf4e7742ac
commit
206c01008e
|
@ -1190,9 +1190,6 @@ def calcsubmit(txt):
|
|||
else:
|
||||
budget = vars.max_length - lnsp - lnmem - lnanote - lnwi - vars.genamt
|
||||
|
||||
if(vars.sp is not None):
|
||||
budget -= vars.sp.shape[0]
|
||||
|
||||
if(actionlen == 0):
|
||||
# First/Prompt action
|
||||
subtxt = vars.memory + winfo + anotetxt + vars.prompt
|
||||
|
|
Loading…
Reference in New Issue