Never load the history for default character

This commit is contained in:
oobabooga 2023-06-06 07:00:11 -03:00
parent ae25b21d61
commit 0f0108ce34

View File

@ -564,7 +564,7 @@ def load_character(character, name1, name2, instruct=False):
if not instruct:
shared.history['internal'] = []
shared.history['visible'] = []
if Path(f'logs/{shared.character}_persistent.json').exists():
if shared.character != 'None' and Path(f'logs/{shared.character}_persistent.json').exists():
load_history(open(Path(f'logs/{shared.character}_persistent.json'), 'rb').read(), name1, name2)
else:
# Insert greeting if it exists