Spaces:
Runtime error
Runtime error
configure space
Browse files- .env +72 -0
- Dockerfile +27 -0
- README.md +12 -5
- librechat.yaml +82 -0
.env
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#=====================================================================#
|
| 2 |
+
# LibreChat Configuration #
|
| 3 |
+
#=====================================================================#
|
| 4 |
+
# Please refer to the reference documentation for assistance #
|
| 5 |
+
# with configuring your LibreChat environment. #
|
| 6 |
+
# #
|
| 7 |
+
# https://www.librechat.ai/docs/configuration/dotenv #
|
| 8 |
+
#=====================================================================#
|
| 9 |
+
|
| 10 |
+
#==================================================#
|
| 11 |
+
# Server Configuration #
|
| 12 |
+
#==================================================#
|
| 13 |
+
|
| 14 |
+
HOST=0.0.0.0
|
| 15 |
+
PORT=3080
|
| 16 |
+
|
| 17 |
+
# MONGO_URI= / Go to the Settings page of your Space repository and add a new secret
|
| 18 |
+
|
| 19 |
+
DOMAIN_CLIENT=https://agilechat-ui.hf.space
|
| 20 |
+
DOMAIN_SERVER=https://agilechat-ui.hf.space
|
| 21 |
+
|
| 22 |
+
NO_INDEX=true
|
| 23 |
+
|
| 24 |
+
#============#
|
| 25 |
+
# Plugins #
|
| 26 |
+
#============#
|
| 27 |
+
|
| 28 |
+
# CREDS_KEY= / Go to the Settings page of your Space repository and add a new secret
|
| 29 |
+
# CREDS_IV= / Go to the Settings page of your Space repository and add a new secret
|
| 30 |
+
|
| 31 |
+
#==================================================#
|
| 32 |
+
# Search #
|
| 33 |
+
#==================================================#
|
| 34 |
+
|
| 35 |
+
SEARCH=true
|
| 36 |
+
MEILI_NO_ANALYTICS=true
|
| 37 |
+
MEILI_HOST=https://agilechat-meilisearch.hf.space
|
| 38 |
+
# MEILI_MASTER_KEY= / Go to the Settings page of your Space repository and add a new secret
|
| 39 |
+
|
| 40 |
+
#========================#
|
| 41 |
+
# Registration and Login #
|
| 42 |
+
#========================#
|
| 43 |
+
|
| 44 |
+
ALLOW_EMAIL_LOGIN=false
|
| 45 |
+
ALLOW_REGISTRATION=false
|
| 46 |
+
ALLOW_SOCIAL_LOGIN=true
|
| 47 |
+
ALLOW_SOCIAL_REGISTRATION=true
|
| 48 |
+
|
| 49 |
+
SESSION_EXPIRY=900000
|
| 50 |
+
REFRESH_TOKEN_EXPIRY=604800000
|
| 51 |
+
|
| 52 |
+
# JWT_SECRET= / Go to the Settings page of your Space repository and add a new secret
|
| 53 |
+
# JWT_REFRESH_SECRET= / Go to the Settings page of your Space repository and add a new secret
|
| 54 |
+
|
| 55 |
+
# OpenID
|
| 56 |
+
# OPENID_CLIENT_ID=$OAUTH_CLIENT_ID / https://huggingface.co/docs/hub/spaces-overview#helper-environment-variables
|
| 57 |
+
# OPENID_CLIENT_SECRET=$OAUTH_CLIENT_SECRET / https://huggingface.co/docs/hub/spaces-overview#helper-environment-variables
|
| 58 |
+
# OPENID_ISSUER=$OPENID_PROVIDER_URL / https://huggingface.co/docs/hub/spaces-overview#helper-environment-variables
|
| 59 |
+
# OPENID_SESSION_SECRET= / Go to the Settings page of your Space repository and add a new secret
|
| 60 |
+
# OPENID_SCOPE=$OAUTH_SCOPES / https://huggingface.co/docs/hub/spaces-overview#helper-environment-variables
|
| 61 |
+
OPENID_CALLBACK_URL=/oauth/openid/callback
|
| 62 |
+
OPENID_BUTTON_LABEL="Continue with Hugging Face"
|
| 63 |
+
OPENID_IMAGE_URL=https://agilechat-assets.static.hf.space/social-icons/hugging-face.svg
|
| 64 |
+
OPENID_USERNAME_CLAIM=preferred_username
|
| 65 |
+
OPENID_NAME_CLAIM=name
|
| 66 |
+
|
| 67 |
+
#===================================================#
|
| 68 |
+
# UI #
|
| 69 |
+
#===================================================#
|
| 70 |
+
|
| 71 |
+
APP_TITLE=AgileChat
|
| 72 |
+
CUSTOM_FOOTER="Welcome back, HuggingChat"
|
Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/agilellamaa/librechat-dev:latest
|
| 2 |
+
|
| 3 |
+
EXPOSE 3080
|
| 4 |
+
|
| 5 |
+
# Create necessary directories
|
| 6 |
+
RUN mkdir -p /app/uploads/temp
|
| 7 |
+
RUN mkdir -p /app/client/public/images/temp
|
| 8 |
+
RUN mkdir -p /app/api/logs/
|
| 9 |
+
RUN mkdir -p /app/data
|
| 10 |
+
|
| 11 |
+
# Give write permission to the directories
|
| 12 |
+
RUN chmod -R 777 /app/uploads/temp
|
| 13 |
+
RUN chmod -R 777 /app/client/public/images
|
| 14 |
+
RUN chmod -R 777 /app/api/logs/
|
| 15 |
+
RUN chmod -R 777 /app/data
|
| 16 |
+
|
| 17 |
+
# Copy .env file
|
| 18 |
+
COPY .env /app/.env
|
| 19 |
+
|
| 20 |
+
# Copy librechat.yaml file
|
| 21 |
+
COPY librechat.yaml /app/librechat.yaml
|
| 22 |
+
|
| 23 |
+
# Install dependencies
|
| 24 |
+
RUN cd /app/api && npm install
|
| 25 |
+
|
| 26 |
+
# Command to run on container start
|
| 27 |
+
CMD ["npm", "run", "backend"]
|
README.md
CHANGED
|
@@ -1,10 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
-
pinned:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: AgileChat
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: docker
|
| 7 |
+
pinned: true
|
| 8 |
+
license: mit
|
| 9 |
+
short_description: Chat with multiple AI models (Invite-only)
|
| 10 |
+
app_port: 3080
|
| 11 |
+
hf_oauth: true
|
| 12 |
+
hf_oauth_scopes:
|
| 13 |
+
- email
|
| 14 |
+
hf_oauth_authorized_org: AgileChat-Users
|
| 15 |
---
|
| 16 |
|
| 17 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
librechat.yaml
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Configuration version (required)
|
| 2 |
+
version: 1.0.0
|
| 3 |
+
|
| 4 |
+
# Cache settings: Set to true to enable caching
|
| 5 |
+
cache: true
|
| 6 |
+
|
| 7 |
+
registration:
|
| 8 |
+
socialLogins:
|
| 9 |
+
- "openid"
|
| 10 |
+
|
| 11 |
+
# Definition of custom endpoints
|
| 12 |
+
endpoints:
|
| 13 |
+
custom:
|
| 14 |
+
- name: "DeepSeek"
|
| 15 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 16 |
+
baseURL: "https://agilechat-inference-deepseek.hf.space/v1"
|
| 17 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/deepseek.png"
|
| 18 |
+
models:
|
| 19 |
+
default: [
|
| 20 |
+
"none"
|
| 21 |
+
]
|
| 22 |
+
fetch: true
|
| 23 |
+
titleConvo: true
|
| 24 |
+
titleModel: "current_model"
|
| 25 |
+
- name: "Gemma"
|
| 26 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 27 |
+
baseURL: "https://agilechat-inference-gemma.hf.space/v1"
|
| 28 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/google.png"
|
| 29 |
+
models:
|
| 30 |
+
default: [
|
| 31 |
+
"none"
|
| 32 |
+
]
|
| 33 |
+
fetch: true
|
| 34 |
+
titleConvo: true
|
| 35 |
+
titleModel: "current_model"
|
| 36 |
+
- name: "Llama"
|
| 37 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 38 |
+
baseURL: "https://agilechat-inference-llama.hf.space/v1"
|
| 39 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/meta.png"
|
| 40 |
+
models:
|
| 41 |
+
default: [
|
| 42 |
+
"none"
|
| 43 |
+
]
|
| 44 |
+
fetch: true
|
| 45 |
+
titleConvo: true
|
| 46 |
+
titleModel: "current_model"
|
| 47 |
+
- name: "Mistral"
|
| 48 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 49 |
+
baseURL: "https://agilechat-inference-mistral.hf.space/v1"
|
| 50 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/mistral.png"
|
| 51 |
+
models:
|
| 52 |
+
default: [
|
| 53 |
+
"none"
|
| 54 |
+
]
|
| 55 |
+
fetch: true
|
| 56 |
+
titleConvo: true
|
| 57 |
+
titleModel: "current_model"
|
| 58 |
+
- name: "Phi"
|
| 59 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 60 |
+
baseURL: "https://agilechat-inference-phi.hf.space/v1"
|
| 61 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/microsoft.png"
|
| 62 |
+
models:
|
| 63 |
+
default: [
|
| 64 |
+
"none"
|
| 65 |
+
]
|
| 66 |
+
fetch: true
|
| 67 |
+
titleConvo: true
|
| 68 |
+
titleModel: "current_model"
|
| 69 |
+
- name: "Qwen"
|
| 70 |
+
apiKey: "${AGILECHAT_API_KEY}"
|
| 71 |
+
baseURL: "https://agilechat-inference-qwen.hf.space/v1"
|
| 72 |
+
iconURL: "https://agilechat-assets.static.hf.space/endpoint-icons/qwen.png"
|
| 73 |
+
models:
|
| 74 |
+
default: [
|
| 75 |
+
"none"
|
| 76 |
+
]
|
| 77 |
+
fetch: true
|
| 78 |
+
titleConvo: true
|
| 79 |
+
titleModel: "current_model"
|
| 80 |
+
|
| 81 |
+
# See the Custom Configuration Guide for more information:
|
| 82 |
+
# https://www.librechat.ai/docs/configuration/librechat_yaml
|