Fix problems with user picture cache
This commit is contained in:
Alkohole 2025-01-15 13:32:48 +01:00 committed by GitHub
parent e1c5d350b1
commit 31c4c7f35c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,7 +352,7 @@ def generate_cai_chat_html(history, name1, name2, style, character, reset_cache=
)
img_me = (
f'<img src="file/cache/pfp_me.png?{time.time() if reset_cache else ""}">'
f'<img src="file/cache/pfp_me.png?{name1}">'
if Path("cache/pfp_me.png").exists() else ''
)