mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
modify adv stopper
This commit is contained in:
@@ -129,7 +129,7 @@ class Stoppers:
|
|||||||
model.gen_state["completed"] = [False] * len(input_ids)
|
model.gen_state["completed"] = [False] * len(input_ids)
|
||||||
|
|
||||||
for i in range(len(input_ids)):
|
for i in range(len(input_ids)):
|
||||||
if (data[i][-6:] == " > You"):
|
if (data[i][-6:] == "> You " or data[i][-4:] == "You:"):
|
||||||
model.gen_state["completed"][i] = True
|
model.gen_state["completed"][i] = True
|
||||||
|
|
||||||
if all(model.gen_state["completed"]):
|
if all(model.gen_state["completed"]):
|
||||||
|
Reference in New Issue
Block a user