forked from danny-avila/LibreChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'danny-avila:main' into main
- Loading branch information
Showing
202 changed files
with
4,430 additions
and
1,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
|
||
APP_TITLE=LibreChat | ||
|
||
# Uncomment to add a custom footer. | ||
# Uncomment and make empty "" to remove the footer. | ||
# CUSTOM_FOOTER="My custom footer" | ||
|
||
# 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. | ||
|
@@ -13,6 +17,21 @@ APP_TITLE=LibreChat | |
HOST=localhost | ||
PORT=3080 | ||
|
||
# Note: the following enables user balances, which you can add manually | ||
# or you will need to build out a balance accruing system for users. | ||
# For more info, see https://docs.librechat.ai/features/token_usage.html | ||
|
||
# To manually add balances, run the following command: | ||
# `npm run add-balance` | ||
|
||
# You can also specify the email and token credit amount to add, e.g.: | ||
# `npm run add-balance [email protected] 1000` | ||
|
||
# This works well to track your own usage for personal use; 1000 credits = $0.001 (1 mill USD) | ||
|
||
# Set to true to enable token credit balances for the OpenAI/Plugins endpoints | ||
CHECK_BALANCE=false | ||
|
||
# Automated Moderation System | ||
# The Automated Moderation System uses a scoring mechanism to track user violations. As users commit actions | ||
# like excessive logins, registrations, or messaging, they accumulate violation scores. Upon reaching | ||
|
@@ -52,6 +71,11 @@ LIMIT_MESSAGE_USER=false # Whether to limit the amount of messages an IP can sen | |
MESSAGE_USER_MAX=40 # The max amount of messages an IP can send per MESSAGE_USER_WINDOW | ||
MESSAGE_USER_WINDOW=1 # in minutes, determines the window of time for MESSAGE_USER_MAX messages | ||
|
||
# If you have permission problems, set here the UID and GID of the user running | ||
# the docker compose command. The applications in the container will run with these uid/gid. | ||
UID=1000 | ||
GID=1000 | ||
|
||
# Change this to proxy any API request. | ||
# It's useful if your machine has difficulty calling the original API server. | ||
# PROXY= | ||
|
@@ -102,6 +126,12 @@ DEBUG_OPENAI=false # Set to true to enable debug mode for the OpenAI endpoint | |
# https://github.com/waylaidwanderer/node-chatgpt-api#using-a-reverse-proxy | ||
# OPENAI_REVERSE_PROXY= | ||
|
||
# (Advanced) Sometimes when using Local LLM APIs, you may need to force the API | ||
# to be called with a `prompt` payload instead of a `messages` payload; to mimic the | ||
# a `/v1/completions` request instead of `/v1/chat/completions` | ||
# This may be the case for LocalAI with some models. To do so, uncomment the following: | ||
# OPENAI_FORCE_PROMPT=true | ||
|
||
########################## | ||
# OpenRouter (overrides OpenAI and Plugins Endpoints): | ||
########################## | ||
|
@@ -372,7 +402,8 @@ DOMAIN_SERVER=http://localhost:3080 | |
########################### | ||
|
||
# Email is used for password reset. Note that all 4 values must be set for email to work. | ||
# Failing to set the 4 values will result in LibreChat using the unsecured password reset! | ||
EMAIL_SERVICE= # eg. gmail | ||
EMAIL_USERNAME= # eg. your email address if using gmail | ||
EMAIL_PASSWORD= # eg. this is the "app password" if using gmail | ||
EMAIL_FROM= # eg. email address for from field like [email protected] | ||
EMAIL_FROM=[email protected] # email address for from field, it is required to set a value here even in the cases where it's not porperly working. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Docker Compose Build on Main Branch | ||
|
||
on: | ||
workflow_dispatch: # This line allows manual triggering | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Set up Docker | ||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
# Log in to GitHub Container Registry | ||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Run docker-compose build | ||
- name: Build Docker images | ||
run: | | ||
cp .env.example .env | ||
docker-compose build | ||
docker build -f Dockerfile.multi --target api-build -t librechat-api . | ||
# Tag and push the images with the 'latest' tag | ||
- name: Tag image and push | ||
run: | | ||
docker tag librechat:latest ghcr.io/${{ github.repository_owner }}/librechat:latest | ||
docker push ghcr.io/${{ github.repository_owner }}/librechat:latest | ||
docker tag librechat-api:latest ghcr.io/${{ github.repository_owner }}/librechat-api:latest | ||
docker push ghcr.io/${{ github.repository_owner }}/librechat-api:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.