mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-23 00:18:20 +01:00
Define visible_text before applying chat_input extensions
This commit is contained in:
parent
b17893a58f
commit
b31321c779
@ -175,10 +175,8 @@ def chatbot_wrapper(text, state, regenerate=False, _continue=False, loading_mess
|
|||||||
|
|
||||||
# Preparing the input
|
# Preparing the input
|
||||||
if not any((regenerate, _continue)):
|
if not any((regenerate, _continue)):
|
||||||
text, visible_text = apply_extensions('chat_input', text, visible_text, state)
|
|
||||||
if visible_text is None:
|
|
||||||
visible_text = text
|
visible_text = text
|
||||||
|
text, visible_text = apply_extensions('chat_input', text, visible_text, state)
|
||||||
text = apply_extensions('input', text, state)
|
text = apply_extensions('input', text, state)
|
||||||
|
|
||||||
# *Is typing...*
|
# *Is typing...*
|
||||||
|
Loading…
Reference in New Issue
Block a user