From 440e1d69457f6e5ae7494410e27b7b26cc5ba260 Mon Sep 17 00:00:00 2001 From: Mathijs de Bruin Date: Wed, 9 Oct 2024 18:32:15 +0100 Subject: [PATCH] Only process default avatar name from config. --- backend/chainlit/server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/chainlit/server.py b/backend/chainlit/server.py index d7d0b4db87..64f48490b1 100644 --- a/backend/chainlit/server.py +++ b/backend/chainlit/server.py @@ -966,8 +966,7 @@ async def get_avatar(avatar_id: str): if avatar_id == "default": avatar_id = config.ui.name - - avatar_id = avatar_id.strip().lower().replace(" ", "_") + avatar_id = avatar_id.strip().lower().replace(" ", "_") base_path = Path(APP_ROOT) / "public" / "avatars" avatar_pattern = f"{avatar_id}.*"