From 8531100109ecc4a5bed41cc2f3adaddf9d7157f8 Mon Sep 17 00:00:00 2001 From: Underscore <47636331+Th-Underscore@users.noreply.github.com> Date: Mon, 26 May 2025 21:40:09 -0400 Subject: [PATCH] Fix textbox text usage in methods (#7009) --- modules/chat.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/chat.py b/modules/chat.py index 715f4327..36a07836 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -708,8 +708,9 @@ def send_last_reply_to_input(history): return '' -def replace_last_reply(text, state): +def replace_last_reply(textbox, state): history = state['history'] + text = textbox['text'] # Initialize metadata if not present if 'metadata' not in history: @@ -726,8 +727,9 @@ def replace_last_reply(text, state): return history -def send_dummy_message(text, state): +def send_dummy_message(textbox, state): history = state['history'] + text = textbox['text'] # Initialize metadata if not present if 'metadata' not in history: @@ -741,8 +743,9 @@ def send_dummy_message(text, state): return history -def send_dummy_reply(text, state): +def send_dummy_reply(textbox, state): history = state['history'] + text = textbox['text'] # Initialize metadata if not present if 'metadata' not in history: