Update impersonate_wrapper
This commit is contained in:
parent
e283ddc559
commit
df37ba5256
1 changed files with 4 additions and 2 deletions
|
@ -247,10 +247,12 @@ def impersonate_wrapper(text, state):
|
||||||
if next_character_found:
|
if next_character_found:
|
||||||
break
|
break
|
||||||
|
|
||||||
if reply is not None:
|
if reply in [None, '']:
|
||||||
|
break
|
||||||
|
else:
|
||||||
cumulative_reply = reply
|
cumulative_reply = reply
|
||||||
|
|
||||||
yield reply
|
yield cumulative_reply
|
||||||
|
|
||||||
|
|
||||||
def generate_chat_reply(text, state, regenerate=False, _continue=False):
|
def generate_chat_reply(text, state, regenerate=False, _continue=False):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue