From 2f4f1241324df9666b11d1699194c163fe162c72 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 24 Apr 2023 13:27:24 -0300 Subject: [PATCH] Remove obsolete function --- modules/chat.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/chat.py b/modules/chat.py index 863353d8..efdc0de8 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -482,11 +482,6 @@ def load_character(character, name1, name2, mode): return name1, name2, picture, greeting, context, end_of_turn, chat_html_wrapper(shared.history['visible'], name1, name2, mode) -def load_default_history(name1, name2): - 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): json_file = json_file if type(json_file) == str else json_file.decode('utf-8') data = json.loads(json_file)