mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 05:48:55 +01:00
Fix impersonate when some text is present (closes #3564)
This commit is contained in:
parent
cc7e6ef645
commit
ff9b5861c8
@ -272,8 +272,8 @@ def impersonate_wrapper(text, start_with, state):
|
||||
|
||||
yield text + '...'
|
||||
reply = None
|
||||
for reply in generate_reply(prompt, state, stopping_strings=stopping_strings, is_chat=True):
|
||||
yield reply.lstrip(' ')
|
||||
for reply in generate_reply(prompt + text, state, stopping_strings=stopping_strings, is_chat=True):
|
||||
yield (text + reply).lstrip(' ')
|
||||
if shared.stop_everything:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user