From 7965f6045e421513877eb2f79e88d20647466d6b Mon Sep 17 00:00:00 2001 From: Lounger <4087076+TheLounger@users.noreply.github.com> Date: Thu, 4 Jan 2024 02:39:41 +0100 Subject: [PATCH] Fix loading latest history for file names with dots (#5162) --- modules/chat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/chat.py b/modules/chat.py index 8ddb7531..dccd20b7 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -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)