Fix impersonate when some text is present (closes #3564)
This commit is contained in:
parent
cc7e6ef645
commit
ff9b5861c8
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ def impersonate_wrapper(text, start_with, state):
|
||||||
|
|
||||||
yield text + '...'
|
yield text + '...'
|
||||||
reply = None
|
reply = None
|
||||||
for reply in generate_reply(prompt, state, stopping_strings=stopping_strings, is_chat=True):
|
for reply in generate_reply(prompt + text, state, stopping_strings=stopping_strings, is_chat=True):
|
||||||
yield reply.lstrip(' ')
|
yield (text + reply).lstrip(' ')
|
||||||
if shared.stop_everything:
|
if shared.stop_everything:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue