mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-30 06:00:15 +01:00
Fix loading latest history for file names with dots (#5162)
This commit is contained in:
parent
894e1a0700
commit
7965f6045e
@ -510,8 +510,7 @@ def load_latest_history(state):
|
||||
histories = find_all_histories(state)
|
||||
|
||||
if len(histories) > 0:
|
||||
unique_id = Path(histories[0]).stem
|
||||
history = load_history(unique_id, state['character_menu'], state['mode'])
|
||||
history = load_history(histories[0], state['character_menu'], state['mode'])
|
||||
else:
|
||||
history = start_new_chat(state)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user