mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +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