Skip to content

Commit

Permalink
Only process default avatar name from config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Oct 9, 2024
1 parent 3c82364 commit 440e1d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.*"
Expand Down

0 comments on commit 440e1d6

Please sign in to comment.