From 7e8340b14d726769d1d33ae15cb4b1fd4ee7b390 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 3 Jul 2023 20:08:14 -0700 Subject: [PATCH] Make greetings appear in --multi-user mode --- modules/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/chat.py b/modules/chat.py index 53a58f59..f21b51c6 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -394,13 +394,13 @@ def save_persistent_history(history, character, mode): def load_persistent_history(state): - if shared.args.multi_user or state['mode'] == 'instruct': + if state['mode'] == 'instruct': return state['history'] character = state['character_menu'] greeting = state['greeting'] p = Path(f'logs/{character}_persistent.json') - if character not in ['None', '', None] and p.exists(): + if not shared.args.multi_user and character not in ['None', '', None] and p.exists(): f = json.loads(open(p, 'rb').read()) if 'internal' in f and 'visible' in f: history = f