Reset your name when choosing a character

This commit is contained in:
oobabooga 2023-04-17 13:56:40 -03:00
parent 163ea295e7
commit c544386824

View File

@ -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: