mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-03 20:12:14 +01:00
Fixed Max Length limits not being enforced for transformers & InferKit
This commit is contained in:
parent
40d9877ba8
commit
1214062292
@ -274,6 +274,7 @@ def calcsubmit(txt):
|
||||
else:
|
||||
count = budget * -1
|
||||
tokens = acttkns[count:] + tokens
|
||||
break
|
||||
|
||||
# Add mmory & prompt tokens to beginning of bundle
|
||||
tokens = memtokens + prompttkns + tokens
|
||||
@ -299,6 +300,7 @@ def calcsubmit(txt):
|
||||
else:
|
||||
count = budget * -1
|
||||
subtxt = vars.actions[(-1-n)][count:] + subtxt
|
||||
break
|
||||
|
||||
# Add mmory & prompt tokens to beginning of bundle
|
||||
if(vars.memory != ""):
|
||||
|
Loading…
Reference in New Issue
Block a user