Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow custom message to guest users. #1441

Merged
merged 7 commits into from
Sep 27, 2024

Conversation

samehkhattab
Copy link
Contributor

For local installations, guest users currently see a default message from Hugging Face, which may be incorrect or irrelevant, especially if a custom OIDC mechanism is being used for authentication.

To address this, I added a new environment variable, PUBLIC_APP_GUEST_MESSAGE, which allows customization of the guest message. This variable depends on the existing MESSAGES_BEFORE_LOGIN setting.

@samehkhattab
Copy link
Contributor Author

@nsarrazin could you please take another look?

Copy link
Collaborator

@nsarrazin nsarrazin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks a lot!

@nsarrazin nsarrazin merged commit f25eaf3 into huggingface:main Sep 27, 2024
3 checks passed
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* feat: allow custom guest message.

* remove the messages_before_login condition.

* fix: lint

---------

Co-authored-by: Khattab, Sameh <sameh.khattab@uk-essen.de>
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants