UI: Fix the history upload event

This commit is contained in:
oobabooga 2024-11-19 20:34:36 -08:00
parent d01293861b
commit 350758f81c

View File

@ -1108,8 +1108,8 @@ def handle_rename_chat_confirm(rename_to, state):
def handle_upload_chat_history(load_chat_history, state): def handle_upload_chat_history(load_chat_history, state):
history = start_new_chat(state) history = start_new_chat(state)
history = load_history_json(load_chat_history, history) history = load_history_json(load_chat_history, history)
histories = find_all_histories_with_first_prompts(state)
save_history(history, state['unique_id'], state['character_menu'], state['mode']) save_history(history, state['unique_id'], state['character_menu'], state['mode'])
histories = find_all_histories_with_first_prompts(state)
html = redraw_html(history, state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu']) html = redraw_html(history, state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu'])