From bc58dc40bdea3ab130d664322ac7c2e9fc915d2c Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 6 Jun 2023 12:57:13 -0300 Subject: [PATCH] Fix a minor bug --- modules/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chat.py b/modules/chat.py index a62767cb..74ab6bc4 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -451,6 +451,8 @@ def save_history(mode, timestamp=False): with open(Path(f'logs/{fname}'), 'w', encoding='utf-8') as f: f.write(json.dumps({'data': shared.history['internal'], 'data_visible': shared.history['visible']}, indent=2)) + return Path(f'logs/{fname}') + def load_history(file, name1, name2): file = file.decode('utf-8')