Fix budget calculation for stories with at least one non-prompt chunk
This commit is contained in:
parent
fe2987d894
commit
0fa47b1249
|
@ -1255,7 +1255,7 @@ def calcsubmit(txt):
|
|||
tokens = memtokens + witokens + prompttkns + tokens
|
||||
|
||||
# Send completed bundle to generator
|
||||
ln = len(tokens)
|
||||
ln = len(tokens) + lnsp
|
||||
|
||||
if(not vars.model in ["Colab", "OAI"]):
|
||||
generate (
|
||||
|
|
Loading…
Reference in New Issue