Fix loading latest history for file names with dots (#5162)
This commit is contained in:
parent
894e1a0700
commit
7965f6045e
1 changed files with 1 additions and 2 deletions
|
@ -510,8 +510,7 @@ def load_latest_history(state):
|
||||||
histories = find_all_histories(state)
|
histories = find_all_histories(state)
|
||||||
|
|
||||||
if len(histories) > 0:
|
if len(histories) > 0:
|
||||||
unique_id = Path(histories[0]).stem
|
history = load_history(histories[0], state['character_menu'], state['mode'])
|
||||||
history = load_history(unique_id, state['character_menu'], state['mode'])
|
|
||||||
else:
|
else:
|
||||||
history = start_new_chat(state)
|
history = start_new_chat(state)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue