Update librechat.yaml
Browse files- librechat.yaml +68 -0
librechat.yaml
CHANGED
|
@@ -9,3 +9,71 @@ registration:
|
|
| 9 |
socialLogins: ["github", "google", "discord", "openid", "facebook"]
|
| 10 |
# allowedDomains:
|
| 11 |
# - "gmail.com"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
socialLogins: ["github", "google", "discord", "openid", "facebook"]
|
| 10 |
# allowedDomains:
|
| 11 |
# - "gmail.com"
|
| 12 |
+
|
| 13 |
+
# Definition of custom endpoints
|
| 14 |
+
endpoints:
|
| 15 |
+
custom:
|
| 16 |
+
# Mistral AI API
|
| 17 |
+
- name: "Mistral" # Unique name for the endpoint
|
| 18 |
+
# For `apiKey` and `baseURL`, you can use environment variables that you define.
|
| 19 |
+
# recommended environment variables:
|
| 20 |
+
apiKey: "${MISTRAL_API_KEY}"
|
| 21 |
+
baseURL: "https://api.mistral.ai/v1"
|
| 22 |
+
|
| 23 |
+
# Models configuration
|
| 24 |
+
models:
|
| 25 |
+
# List of default models to use. At least one value is required.
|
| 26 |
+
default: ["mistral-tiny", "mistral-small", "mistral-medium"]
|
| 27 |
+
# Fetch option: Set to true to fetch models from API.
|
| 28 |
+
fetch: true # Defaults to false.
|
| 29 |
+
|
| 30 |
+
# Optional configurations
|
| 31 |
+
|
| 32 |
+
# Title Conversation setting
|
| 33 |
+
titleConvo: true # Set to true to enable title conversation
|
| 34 |
+
|
| 35 |
+
# Title Method: Choose between "completion" or "functions".
|
| 36 |
+
titleMethod: "completion" # Defaults to "completion" if omitted.
|
| 37 |
+
|
| 38 |
+
# Title Model: Specify the model to use for titles.
|
| 39 |
+
titleModel: "mistral-tiny" # Defaults to "gpt-3.5-turbo" if omitted.
|
| 40 |
+
|
| 41 |
+
# Summarize setting: Set to true to enable summarization.
|
| 42 |
+
summarize: false
|
| 43 |
+
|
| 44 |
+
# Summary Model: Specify the model to use if summarization is enabled.
|
| 45 |
+
summaryModel: "mistral-tiny" # Defaults to "gpt-3.5-turbo" if omitted.
|
| 46 |
+
|
| 47 |
+
# Force Prompt setting: If true, sends a `prompt` parameter instead of `messages`.
|
| 48 |
+
forcePrompt: false
|
| 49 |
+
|
| 50 |
+
# The label displayed for the AI model in messages.
|
| 51 |
+
modelDisplayLabel: "Mistral" # Default is "AI" when not set.
|
| 52 |
+
|
| 53 |
+
# Add additional parameters to the request. Default params will be overwritten.
|
| 54 |
+
addParams:
|
| 55 |
+
safe_prompt: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/
|
| 56 |
+
|
| 57 |
+
# Drop Default params parameters from the request. See default params in guide linked below.
|
| 58 |
+
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:
|
| 59 |
+
dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]
|
| 60 |
+
|
| 61 |
+
# OpenRouter.ai Example
|
| 62 |
+
- name: "OpenRouter"
|
| 63 |
+
# For `apiKey` and `baseURL`, you can use environment variables that you define.
|
| 64 |
+
# recommended environment variables:
|
| 65 |
+
# Known issue: you should not use `OPENROUTER_API_KEY` as it will then override the `openAI` endpoint to use OpenRouter as well.
|
| 66 |
+
apiKey: "${OPENROUTER_KEY}"
|
| 67 |
+
baseURL: "https://openrouter.ai/api/v1"
|
| 68 |
+
models:
|
| 69 |
+
default: ["gpt-3.5-turbo"]
|
| 70 |
+
fetch: true
|
| 71 |
+
titleConvo: true
|
| 72 |
+
titleModel: "gpt-3.5-turbo"
|
| 73 |
+
summarize: false
|
| 74 |
+
summaryModel: "gpt-3.5-turbo"
|
| 75 |
+
forcePrompt: false
|
| 76 |
+
modelDisplayLabel: "OpenRouter"
|
| 77 |
+
|
| 78 |
+
# See the Custom Configuration Guide for more information:
|
| 79 |
+
# https://docs.librechat.ai/install/configuration/custom_config.html
|