mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Fix You You You appearing in chat mode
This commit is contained in:
parent
bcf0075278
commit
e2da6b9685
@ -84,6 +84,7 @@ def extract_message_from_reply(question, reply, name1, name2, check, impersonate
|
||||
tmp = f"\n{asker}:"
|
||||
for j in range(1, len(tmp)):
|
||||
if reply[-j:] == tmp[:j]:
|
||||
reply = reply[:-j]
|
||||
substring_found = True
|
||||
|
||||
return reply, next_character_found, substring_found
|
||||
|
Loading…
Reference in New Issue
Block a user