Try to better handle browser image cache

This commit is contained in:
oobabooga 2023-04-04 23:09:28 -03:00
parent cc6c7a37f3
commit 8ef89730a5
2 changed files with 5 additions and 4 deletions

View file

@ -390,7 +390,7 @@ def load_character(character, name1, name2):
shared.history['visible'] += [['', apply_extensions(greeting, "output")]]
if shared.args.cai_chat:
return name1, name2, picture, greeting, context, generate_chat_html(shared.history['visible'], name1, name2)
return name1, name2, picture, greeting, context, generate_chat_html(shared.history['visible'], name1, name2, reset_cache=True)
else:
return name1, name2, picture, greeting, context, shared.history['visible']