From aa1177ff1540a89fb6549c33421577de455387d0 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 13 Feb 2023 03:29:23 -0300 Subject: [PATCH] Send last internal reply to input rather than visible --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 23392fe4..49ca5ddf 100644 --- a/server.py +++ b/server.py @@ -538,8 +538,8 @@ def remove_last_message(name1, name2): return history['visible'], last[0] def send_last_reply_to_input(): - if len(history['visible']) > 0: - return history['visible'][-1][1] + if len(history['internal']) > 0: + return history['internal'][-1][1] else: return ''