Fix loading latest history for file names with dots (#5162)

This commit is contained in:
Lounger 2024-01-04 02:39:41 +01:00 committed by GitHub
parent 894e1a0700
commit 7965f6045e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)