feat: Order/disable endpoints with ENDPOINTS env var (#1206)

* fix: endpoint will not be select if disabled

* feat: order and disable endpoints with ENDPOINTS env var

* chore: remove console.log
This commit is contained in:
Danny Avila 2023-11-22 13:56:38 -05:00 committed by GitHub
parent f05f6826f5
commit f3402401f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 33 deletions

View file

@ -8,6 +8,13 @@ APP_TITLE=LibreChat
# Uncomment and make empty "" to remove the footer.
# CUSTOM_FOOTER="My custom footer"
# Uncomment the `ENDPOINTS` variable to determine which endpoints are available.
# Listed here are the only accepted values, which are all enabled if an authentication
# option is provided, whether user provided or admin provided in this .env file.
# Note: the first value is considered the default value.
# ENDPOINTS=openAI,azureOpenAI,bingAI,chatGPTBrowser,google,gptPlugins,anthropic
# The server will listen to localhost:3080 by default. You can change the target IP as you want.
# If you want to make this server available externally, for example to share the server with others
# or expose this from a Docker container, set host to 0.0.0.0 or your external IP interface.