mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 06:06:20 -04:00
--------- Co-authored-by: oobabooga <oobabooga4@gmail.com>
This commit is contained in:
parent
7c883ef2f0
commit
769eee1ff3
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ def generate_chat_reply(text, state, regenerate=False, _continue=False, loading_
|
|||
yield history
|
||||
return
|
||||
|
||||
show_after = html.escape(state["show_after"]) if state["show_after"] else None
|
||||
show_after = html.escape(state.get("show_after")) if state.get("show_after") else None
|
||||
for history in chatbot_wrapper(text, state, regenerate=regenerate, _continue=_continue, loading_message=loading_message, for_ui=for_ui):
|
||||
if show_after:
|
||||
after = history["visible"][-1][1].partition(show_after)[2] or "*Is thinking...*"
|
||||
|
|
Loading…
Add table
Reference in a new issue