mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
Add configuration to disable or remove Gravatar default avatar. #175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @puresick on GitHub (Jan 12, 2024).
Originally assigned to: @tjbck on GitHub.
Is your feature request related to a problem? Please describe.
There is an external network request being made for the simple account picture placeholder. If you are running ollama and ollama-webui locally, there is a good chance you might not want that to happen.
Describe the solution you'd like
Some way of disabling this from happen. Maybe as an environment variable or as a setting in the admin panel UI.
Describe alternatives you've considered
Since there is no functionality to update the profile picture using Gravatar maybe remove that request completely and use a local default picture instead.
Additional context

@justinh-rahb commented on GitHub (Jan 13, 2024):
Before the user authentication feature was merged, the use of Gravatar was optional. I agree that it would be best to keep this option available for users by bringing back a way to enable or disable it.
That being said, I'm also curious about your thoughts on web applications that use assets from CDNs, as this is a common practice. Where do we draw the line on this? Do we maintain a hardline on 'no external network requests'?
@puresick commented on GitHub (Jan 17, 2024):
That would be great! :)
Having a hardline on "no external network requests" would be the optimum, since it would allow for completely private instances hosted on any machine. On the other side can this make some things more difficult.
In general, I would suggest to prevent external requests for simple assets which do not get updated frequently or the update is not necessary, e.g. default user profile picture, some CSS reset file, external JS libraries which are needed during runtime etc.
Other things like the model files (I know this is managed my ollama itself rather than the webui, but just using it as example scenario here) should be requested over the network by default because you always want to most recent version and the best UX to get things started. In such cases it would be great though to have the configuration option to disable these requests if someone wants to completely lock down their instance.
@tjbck commented on GitHub (Jan 27, 2024):
With #584, webui uses local "user.png" image by default! Users can also edit their profile image in the settings now, let me know if you encounter any issues!
@puresick commented on GitHub (Jan 29, 2024):
Works like a charm, thank you!