Update librechat.yaml
Browse files- librechat.yaml +56 -7
librechat.yaml
CHANGED
@@ -7,22 +7,71 @@ cache: true
|
|
7 |
# Definition of custom endpoints
|
8 |
endpoints:
|
9 |
custom:
|
10 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
- name: "Reverse Proxy"
|
12 |
# For `apiKey` and `baseURL`, you can use environment variables that you define.
|
13 |
# recommended environment variables:
|
14 |
# Known issue: you should not use `OPENROUTER_API_KEY` as it will then override the `openAI` endpoint to use OpenRouter as well.
|
15 |
apiKey: "user_provided"
|
16 |
-
baseURL: "
|
17 |
-
models:
|
18 |
-
default: ["gpt-4-vision-preview", "gpt-4-1106-preview", "gpt-3.5-turbo
|
19 |
fetch: true
|
20 |
titleConvo: true
|
21 |
-
titleModel: "gpt-3.5-turbo
|
22 |
summarize: true
|
23 |
-
summaryModel: "gpt-3.5-turbo
|
24 |
forcePrompt: false
|
25 |
-
modelDisplayLabel: "
|
26 |
|
27 |
# See the Custom Configuration Guide for more information:
|
28 |
# https://docs.librechat.ai/install/configuration/custom_config.html
|
|
|
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 |
+
|
60 |
- name: "Reverse Proxy"
|
61 |
# For `apiKey` and `baseURL`, you can use environment variables that you define.
|
62 |
# recommended environment variables:
|
63 |
# Known issue: you should not use `OPENROUTER_API_KEY` as it will then override the `openAI` endpoint to use OpenRouter as well.
|
64 |
apiKey: "user_provided"
|
65 |
+
baseURL: "user_provided"
|
66 |
+
models:
|
67 |
+
default: ["gpt-4-vision-preview", "gpt-4", "gpt-4-1106-preview", "gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4-32k"]
|
68 |
fetch: true
|
69 |
titleConvo: true
|
70 |
+
titleModel: "gpt-3.5-turbo"
|
71 |
summarize: true
|
72 |
+
summaryModel: "gpt-3.5-turbo"
|
73 |
forcePrompt: false
|
74 |
+
modelDisplayLabel: "AI"
|
75 |
|
76 |
# See the Custom Configuration Guide for more information:
|
77 |
# https://docs.librechat.ai/install/configuration/custom_config.html
|