mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04: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):
|
def send_last_reply_to_input(history):
|
||||||
if len(history['internal']) > 0:
|
if len(history['visible']) > 0:
|
||||||
return history['internal'][-1][1]
|
return history['visible'][-1][1]
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user