Guru-25 commited on
Commit
ec846d9
·
verified ·
1 Parent(s): 3818b3d

Update Dockerfile and README.md; remove obsolete librechat.yaml

Browse files
Files changed (3) hide show
  1. Dockerfile +7 -8
  2. README.md +3 -4
  3. librechat.yaml +0 -92
Dockerfile CHANGED
@@ -1,19 +1,17 @@
 
1
  FROM ghcr.io/danny-avila/librechat-dev:latest
2
- EXPOSE 3080
 
 
3
 
4
  # Set environment variables
5
  ENV HOST=0.0.0.0
6
- ENV PORT=3080
7
  ENV SESSION_EXPIRY=900000
8
  ENV REFRESH_TOKEN_EXPIRY=604800000
9
-
10
- # Uncomment the following ENV to enable search
11
- # Feel free to clone our meilisearch space and update the URL with your own
12
-
13
  ENV SEARCH=true
14
  ENV MEILI_NO_ANALYTICS=true
15
  ENV MEILI_HOST=https://guru-25-meilisearch.hf.space
16
- ENV MEILI_HTTP_ADDR=https://guru-25-meilisearch.hf.space
17
 
18
  # Create necessary directories
19
  RUN mkdir -p /app/uploads/temp
@@ -27,8 +25,9 @@ RUN chmod -R 777 /app/client/public/images
27
  RUN chmod -R 777 /app/api/logs/
28
  RUN chmod -R 777 /app/data
29
 
 
30
  # Copy Custom Endpoints Config
31
- RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/fuegovic/lc-config-yaml/main/librechat-rw.yaml
32
  # COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
33
 
34
  # Install dependencies
 
1
+ # Pull the base image
2
  FROM ghcr.io/danny-avila/librechat-dev:latest
3
+
4
+ # FROM ghcr.io/danny-avila/librechat-dev:0a1d38e3189a4f905d021be41ac2c8b5bd03d8b7
5
+
6
 
7
  # Set environment variables
8
  ENV HOST=0.0.0.0
9
+ ENV PORT=7860
10
  ENV SESSION_EXPIRY=900000
11
  ENV REFRESH_TOKEN_EXPIRY=604800000
 
 
 
 
12
  ENV SEARCH=true
13
  ENV MEILI_NO_ANALYTICS=true
14
  ENV MEILI_HOST=https://guru-25-meilisearch.hf.space
 
15
 
16
  # Create necessary directories
17
  RUN mkdir -p /app/uploads/temp
 
25
  RUN chmod -R 777 /app/api/logs/
26
  RUN chmod -R 777 /app/data
27
 
28
+
29
  # Copy Custom Endpoints Config
30
+ RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/LibreChat-AI/librechat-config-yaml/refs/heads/main/librechat-aio.yaml
31
  # COPY librechat.yaml /app/librechat.yaml # Uncomment this and comment out the previous line to use the local librechat.yaml
32
 
33
  # Install dependencies
README.md CHANGED
@@ -1,11 +1,10 @@
1
  ---
2
  title: LibreChat
3
- emoji:
4
- colorFrom: gray
5
- colorTo: red
6
  sdk: docker
7
  pinned: false
8
- port: 3080
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: LibreChat
3
+ emoji: 🪶
4
+ colorFrom: pink
5
+ colorTo: blue
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
librechat.yaml DELETED
@@ -1,92 +0,0 @@
1
- # Configuration version (required)
2
- version: 1.0.0
3
-
4
- # Cache settings: Set to true to enable caching
5
- cache: true
6
-
7
- # Definition of custom endpoints
8
- endpoints:
9
- custom:
10
- # Mistral AI API
11
- - name: "Mistral" # Unique name for the endpoint
12
- # For `apiKey` and `baseURL`, you can use environment variables that you define.
13
- # recommended environment variables:
14
- apiKey: "${MISTRAL_API_KEY}"
15
- baseURL: "https://api.mistral.ai/v1"
16
-
17
- # Models configuration
18
- models:
19
- # List of default models to use. At least one value is required.
20
- default: ["mistral-tiny", "mistral-small", "mistral-medium"]
21
- # Fetch option: Set to true to fetch models from API.
22
- fetch: true # Defaults to false.
23
-
24
- # Optional configurations
25
-
26
- # Title Conversation setting
27
- titleConvo: true # Set to true to enable title conversation
28
-
29
- # Title Method: Choose between "completion" or "functions".
30
- titleMethod: "completion" # Defaults to "completion" if omitted.
31
-
32
- # Title Model: Specify the model to use for titles.
33
- titleModel: "mistral-tiny" # Defaults to "gpt-3.5-turbo" if omitted.
34
-
35
- # Summarize setting: Set to true to enable summarization.
36
- summarize: false
37
-
38
- # Summary Model: Specify the model to use if summarization is enabled.
39
- summaryModel: "mistral-tiny" # Defaults to "gpt-3.5-turbo" if omitted.
40
-
41
- # Force Prompt setting: If true, sends a `prompt` parameter instead of `messages`.
42
- forcePrompt: false
43
-
44
- # The label displayed for the AI model in messages.
45
- modelDisplayLabel: "Mistral" # Default is "AI" when not set.
46
-
47
- # Add additional parameters to the request. Default params will be overwritten.
48
- addParams:
49
- safe_mode: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/
50
-
51
- # Drop Default params parameters from the request. See default params in guide linked below.
52
- dropParams: ["stop", "temperature", "top_p"]
53
- # - stop # dropped since it's not recognized by Mistral AI API
54
- # `temperature` and `top_p` are removed to allow Mistral AI API defaults to be used:
55
- # - temperature
56
- # - top_p
57
-
58
- # OpenRouter.ai Example
59
- - name: "OpenRouter"
60
- # For `apiKey` and `baseURL`, you can use environment variables that you define.
61
- # recommended environment variables:
62
- # Known issue: you should not use `OPENROUTER_API_KEY` as it will then override the `openAI` endpoint to use OpenRouter as well.
63
- apiKey: "${OPENROUTER_KEY}"
64
- baseURL: "https://openrouter.ai/api/v1"
65
- models:
66
- default: ["nousresearch/nous-capybara-7b:free", "mistralai/mistral-7b-instruct:free", "huggingfaceh4/zephyr-7b-beta:free", "openchat/openchat-7b:free", "gryphe/mythomist-7b:free", "undi95/toppy-m-7b:free", "openrouter/cinematika-7b:free", "openrouter/auto", "nousresearch/nous-capybara-7b", "mistralai/mistral-7b-instruct", "huggingfaceh4/zephyr-7b-beta", "openchat/openchat-7b", "gryphe/mythomist-7b", "openrouter/cinematika-7b", "rwkv/rwkv-5-world-3b", "recursal/rwkv-5-3b-ai-town", "jondurbin/bagel-34b", "jebcarter/psyfighter-13b", "koboldai/psyfighter-13b-2", "neversleep/noromaid-mixtral-8x7b-instruct", "nousresearch/nous-hermes-llama2-13b", "meta-llama/codellama-34b-instruct", "phind/phind-codellama-34b", "intel/neural-chat-7b", "nousresearch/nous-hermes-2-mixtral-8x7b-dpo", "nousresearch/nous-hermes-2-mixtral-8x7b-sft", "haotian-liu/llava-13b", "nousresearch/nous-hermes-2-vision-7b", "meta-llama/llama-2-13b-chat", "gryphe/mythomax-l2-13b", "nousresearch/nous-hermes-llama2-70b", "teknium/openhermes-2-mistral-7b", "teknium/openhermes-2.5-mistral-7b", "undi95/remm-slerp-l2-13b", "undi95/toppy-m-7b", "01-ai/yi-34b-chat", "01-ai/yi-34b", "01-ai/yi-6b", "togethercomputer/stripedhyena-nous-7b", "togethercomputer/stripedhyena-hessian-7b", "mistralai/mixtral-8x7b", "nousresearch/nous-hermes-yi-34b", "open-orca/mistral-7b-openorca", "openai/gpt-3.5-turbo", "openai/gpt-3.5-turbo-1106", "openai/gpt-3.5-turbo-16k", "openai/gpt-4-1106-preview", "openai/gpt-4", "openai/gpt-4-32k", "openai/gpt-4-vision-preview", "openai/gpt-3.5-turbo-instruct", "google/palm-2-chat-bison", "google/palm-2-codechat-bison", "google/palm-2-chat-bison-32k", "google/palm-2-codechat-bison-32k", "google/gemini-pro", "google/gemini-pro-vision", "perplexity/pplx-70b-online", "perplexity/pplx-7b-online", "perplexity/pplx-7b-chat", "perplexity/pplx-70b-chat", "meta-llama/llama-2-70b-chat", "nousresearch/nous-capybara-34b", "jondurbin/airoboros-l2-70b", "austism/chronos-hermes-13b", "migtissera/synthia-70b", "pygmalionai/mythalion-13b", "undi95/remm-slerp-l2-13b-6k", "xwin-lm/xwin-lm-70b", "gryphe/mythomax-l2-13b-8k", "alpindale/goliath-120b ", "lizpreciatior/lzlv-70b-fp16-hf", "neversleep/noromaid-20b", "mistralai/mixtral-8x7b-instruct", "cognitivecomputations/dolphin-mixtral-8x7b", "anthropic/claude-2", "anthropic/claude-2.0", "anthropic/claude-instant-v1", "mancer/weaver", "mistralai/mistral-tiny", "mistralai/mistral-small", "mistralai/mistral-medium"]
67
- fetch: true
68
- titleConvo: true
69
- titleModel: "gpt-3.5-turbo"
70
- summarize: false
71
- summaryModel: "gpt-3.5-turbo"
72
- forcePrompt: false
73
- modelDisplayLabel: "OpenRouter"
74
-
75
- - name: "Reverse Proxy"
76
- # For `apiKey` and `baseURL`, you can use environment variables that you define.
77
- # recommended environment variables:
78
- # Known issue: you should not use `OPENROUTER_API_KEY` as it will then override the `openAI` endpoint to use OpenRouter as well.
79
- apiKey: "user_provided"
80
- baseURL: "user_provided"
81
- models:
82
- default: ["gpt-3.5-turbo"]
83
- fetch: true
84
- titleConvo: true
85
- titleModel: "gpt-3.5-turbo"
86
- summarize: false
87
- summaryModel: "gpt-3.5-turbo"
88
- forcePrompt: false
89
- modelDisplayLabel: "AI"
90
-
91
- # See the Custom Configuration Guide for more information:
92
- # https://docs.librechat.ai/install/configuration/custom_config.html