From c544386824cf739759dabab31631a5f794c17234 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:56:40 -0300 Subject: [PATCH] Reset your name when choosing a character --- modules/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chat.py b/modules/chat.py index 585193c9..3eebb1a3 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -438,6 +438,8 @@ def load_character(character, name1, name2, mode): name2 = data['name'] if 'name' in data else data['char_name'] if 'your_name' in data and data['your_name'] != '': name1 = data['your_name'] + else: + name1 = shared.settings['name1'] for field in ['context', 'greeting', 'example_dialogue', 'char_persona', 'char_greeting', 'world_scenario']: if field in data: