WIP 🚀 feat: Add Custom Welcome Message Support in LibreChat #5870
+73
−55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This update introduces support for a customizable welcome message, allowing users to configure a greeting via the
.env
file. This enhancement improves branding and user experience.Closes: #2967
Docs: LibreChat-AI/librechat.ai#236
Changes Made
CUSTOM_WELCOME_MESSAGE
in.env.example
.api/server/routes/config.js
to readCUSTOM_WELCOME_MESSAGE
from the environment variables and include it in the startup config payload.client/src/components/Chat/Landing.tsx
to use the newCUSTOM_WELCOME_MESSAGE
from the startup config.Landing.tsx
for better readability.TStartupConfig
inpackages/data-provider/src/config.ts
to includecustomWelcomeMessage
.Motivation and Context
This change allows platform administrators to define a customized greeting that appears when users access the chat interface. The goal is to improve engagement and provide a tailored experience.
Dependencies
Change Type
Testing
Test Process
Backend:
.env
file includingCUSTOM_WELCOME_MESSAGE="Welcome to LibreChat!"
./api/startup-config
and verify thatcustomWelcomeMessage
is included in the response.Frontend:
CUSTOM_WELCOME_MESSAGE
is missing or empty to ensure fallback messages still work.Test Configuration
Checklist