Return the visible history with "Copy last reply"

This commit is contained in:
oobabooga 2023-08-18 13:04:45 -07:00
parent b96fd22a81
commit f6724a1a01

View File

@ -317,8 +317,8 @@ def remove_last_message(history):
def send_last_reply_to_input(history):
if len(history['internal']) > 0:
return history['internal'][-1][1]
if len(history['visible']) > 0:
return history['visible'][-1][1]
else:
return ''