From 0c32ae27cc7712c03953e5583a2abe35ea938b0a Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:50:51 -0300 Subject: [PATCH] Only load the default history if it's empty --- modules/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/chat.py b/modules/chat.py index 6801741a..863353d8 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -483,7 +483,8 @@ def load_character(character, name1, name2, mode): def load_default_history(name1, name2): - load_character("None", name1, name2, "chat") + if len(shared.history['visible']) == 0 and len(shared.history['internal']) == 0: + load_character("None", name1, name2, "chat") def upload_character(json_file, img, tavern=False):