mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 13:58:56 +01:00
Return the visible history with "Copy last reply"
This commit is contained in:
parent
b96fd22a81
commit
f6724a1a01
@ -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 ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user