Skip to content

Commit f7042a4

Browse files
authored
🤖 docs: Update the Endpoint and Agent librechat.yaml Reference (#863)
* docs: Update the endpoint and agent librechat.yaml reference Check the agents, summarization, Azure, Vertex, Bedrock, assistants, custom endpoint, model spec and shared endpoint pages, plus the AI endpoint guides, against the LibreChat config schemas: fix wrong keys and defaults, remove keys the server no longer reads and document the missing ones. * docs: Give the decision protocol rollout steps for conversation moves Protocol version 1 is advertised when CODE_ENVIRONMENT_DECISION_VERSION is unset, so a rolling upgrade must set it to 0 before the first new replica starts and remove it once every replica is upgraded. * docs: Correct the Azure Assistants version, machine choice and assistants flag azureAssistants falls back to version 1 only when endpoints.azureOpenAI.assistants is enabled. maxEnvironmentChoices defaults to 32. Show the assistants flag on the group, where it takes effect, rather than on a model.
1 parent c49203e commit f7042a4

28 files changed

Lines changed: 552 additions & 227 deletions

‎content/docs/configuration/librechat_yaml/ai_endpoints/anyscale.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ endpoints:
3131
fetch: true
3232
titleConvo: true
3333
titleModel: "meta-llama/Llama-2-7b-chat-hf"
34-
summarize: false
35-
summaryModel: "meta-llama/Llama-2-7b-chat-hf"
3634
modelDisplayLabel: "Anyscale"
3735
```
3836

‎content/docs/configuration/librechat_yaml/ai_endpoints/apipie.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ endpoints:
4545
fetch: false
4646
titleConvo: true
4747
titleModel: "claude-3-haiku"
48-
summarize: false
49-
summaryModel: "claude-3-haiku"
5048
dropParams: ["stream"]
5149
modelDisplayLabel: "APIpie"
5250
```

‎content/docs/configuration/librechat_yaml/ai_endpoints/azure.mdx‎

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ endpoints:
1717
azureOpenAI:
1818
# Endpoint-level configuration
1919
titleModel: "llama-70b-chat"
20-
plugins: true
2120
assistants: true
2221
groups:
2322
# Group-level configuration
@@ -94,15 +93,11 @@ To integrate Azure OpenAI with LibreChat, specific fields must be configured in
9493
<OptionTable
9594
options={[
9695
['titleModel', 'string', 'Specifies the model to use for generating conversation titles. If not provided, the default model is set as `gpt-3.5-turbo`, which will result in no titles if lacking this model. You can also set this to dynamically use the current model by setting it to `current_model`.', 'titleModel:'],
97-
['plugins', 'boolean', 'Enables the use of plugins through Azure. Set to `true` to activate Plugins endpoint support through your Azure config. Default: `false`.', 'plugins:false'],
9896
['assistants', 'boolean', 'Enables the use of assistants through Azure. Set to `true` to activate Assistants endpoint through your Azure config. Default: `false`. Note: this requires an assistants-compatible region.', 'assistants:false'],
99-
['summarize', 'boolean', 'Enables conversation summarization for all Azure models. Set to `true` to activate summarization. Default: `false`.', 'summarize:false'],
100-
['summaryModel', 'string', 'Specifies the model to use for generating conversation summaries. If not provided, the default behavior is to use the first model in the `default` array of the first group.', 'summaryModel:'],
10197
['titleConvo', 'boolean', 'Enables conversation title generation for all Azure models. Set to `true` to activate title generation. Default: `false`.', 'titleConvo:false'],
10298
['titleMethod', 'string', 'Controls the method used for generating conversation titles. Valid values: "completion" (default), "structured", "functions" (legacy alias for "structured").', 'titleMethod:completion'],
10399
['titlePrompt', 'string', 'Custom prompt for title generation. Must include {convo} placeholder for the conversation content.', 'See documentation for default prompt'],
104100
['titlePromptTemplate', 'string', 'Template for formatting conversation content. Must include {input} and {output} placeholders. Default: "User: {input}\\nAI: {output}"', 'titlePromptTemplate:'],
105-
['titleEndpoint', 'string', 'Alternative endpoint to use for title generation. Accepted values: openAI, azureOpenAI, google, anthropic, bedrock, or custom endpoint names.', 'titleEndpoint:'],
106101
]}
107102
/>
108103

@@ -113,25 +108,13 @@ To integrate Azure OpenAI with LibreChat, specific fields must be configured in
113108
]}
114109
/>
115110

116-
**Custom Order (Optional):**
117-
<OptionTable
118-
options={[
119-
['customOrder', 'number', 'Allows you to specify a custom order for the Azure endpoint in the user interface. Higher numbers will appear lower in the list. If not provided, the default order is determined by the order in which the endpoints are defined in the `librechat.yaml` file.', 'customOrder:'],
120-
]}
121-
/>
122-
123-
The `customOrder` option is commented out, as it is optional.
124-
125111
Example of these endpoint-level settings in your `librechat.yaml` file:
126112

127113
```yaml filename="librechat.yaml"
128114
endpoints:
129115
azureOpenAI:
130116
titleModel: "gpt-3.5-turbo-1106"
131-
plugins: true
132117
assistants: true
133-
summarize: true
134-
summaryModel: "gpt-3.5-turbo-1106"
135118
titleConvo: true
136119
titleMethod: "functions"
137120
groups:
@@ -358,8 +341,7 @@ endpoints:
358341
- For this reason, it's recommended you use only one region or resource group for Azure OpenAI Assistants, or you will experience an error.
359342
- Uploading to "OpenAI" is the default behavior for official `code_interpreter` and `retrieval` capabilities.
360343
- Downloading files that assistants generate will soon be supported.
361-
- As of May 19th 2024, retrieval and streaming are not yet supported through Azure OpenAI.
362-
- To avoid any errors with retrieval while it's not supported, it's recommended to disable the capability altogether through the `azureAssistants` endpoint config:
344+
- The default `azureAssistants` capabilities include `retrieval`. To turn it off, list the capabilities you want explicitly and omit it:
363345

364346
```yaml filename="librechat.yaml"
365347
endpoints:
@@ -371,27 +353,6 @@ endpoints:
371353
capabilities: ["code_interpreter", "actions", "tools"]
372354
```
373355

374-
- By default, all capabilities, except retrieval, are enabled.
375-
376-
### Using Plugins with Azure
377-
378-
To use the Plugins endpoint with Azure OpenAI, you need a deployment supporting **[function calling](https://techcommunity.microsoft.com/t5/azure-ai-services-blog/function-calling-is-now-available-in-azure-openai-service/ba-p/3879241)**. Otherwise, set "Functions" off in the Agent settings. When you are not using "functions" mode, it's recommended to have "skip completion" off as well, which is a review step of what the agent generated.
379-
380-
To use Azure with the Plugins endpoint, make sure the field `plugins` is set to `true` in your Azure OpenAI endpoint config:
381-
382-
```yaml filename="librechat.yaml"
383-
# Example Azure OpenAI Object Structure
384-
endpoints:
385-
azureOpenAI:
386-
plugins: true # <------- Set this
387-
groups:
388-
# omitted for brevity
389-
```
390-
391-
Configuring the `plugins` field will configure Plugins to use Azure models.
392-
393-
**NOTE**: The current configuration through `librechat.yaml` uses the primary model you select from the frontend for Plugin use, which is not usually how it works without Azure, where instead the "Agent" model is used. The Agent model setting can be ignored when using Plugins through Azure.
394-
395356
### Using a Specified Base URL with Azure
396357

397358
The base URL for Azure OpenAI API requests can be dynamically configured. This is useful for proxying services such as [Cloudflare AI Gateway](https://developers.cloudflare.com/ai-gateway/providers/azureopenai/), or if you wish to explicitly override the baseURL handling of the app.

‎content/docs/configuration/librechat_yaml/ai_endpoints/fireworks.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ endpoints:
3131
fetch: true
3232
titleConvo: true
3333
titleModel: "accounts/fireworks/models/llama-v2-7b-chat"
34-
summarize: false
35-
summaryModel: "accounts/fireworks/models/llama-v2-7b-chat"
3634
modelDisplayLabel: "Fireworks"
3735
dropParams: ["user"]
3836
```

‎content/docs/configuration/librechat_yaml/ai_endpoints/huggingface.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ endpoints:
3838
"mistralai/Mixtral-8x7B-Instruct-v0.1",
3939
"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
4040
]
41-
fetch: true
41+
fetch: false
4242
titleConvo: true
4343
titleModel: "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO"
4444
dropParams: ["top_p"]

‎content/docs/configuration/librechat_yaml/ai_endpoints/litellm.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ endpoints:
2222
fetch: true
2323
titleConvo: true
2424
titleModel: "gpt-3.5-turbo"
25-
summarize: false
26-
summaryModel: "gpt-3.5-turbo"
2725
modelDisplayLabel: "LiteLLM"
2826
```
2927

‎content/docs/configuration/librechat_yaml/ai_endpoints/mlx.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ endpoints:
2323
fetch: false # fetching list of models is not supported
2424
titleConvo: true
2525
titleModel: "current_model"
26-
summarize: false
27-
summaryModel: "current_model"
2826
modelDisplayLabel: "Apple MLX"
2927
addParams:
3028
max_tokens: 2000

‎content/docs/configuration/librechat_yaml/ai_endpoints/neurochain.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ endpoints:
2323
fetch: true
2424
titleConvo: true
2525
titleModel: "current_model"
26-
summarize: false
27-
summaryModel: "current_model"
2826
modelDisplayLabel: "NeurochainAI"
2927
iconURL: "https://raw.githubusercontent.com/LibreChat-AI/librechat-config-yaml/refs/heads/main/icons/NeurochainAI.png"
3028
```

‎content/docs/configuration/librechat_yaml/ai_endpoints/ollama.mdx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ endpoints:
3030
fetch: true
3131
titleConvo: true
3232
titleModel: "current_model"
33-
summarize: false
34-
summaryModel: "current_model"
3533
modelDisplayLabel: "Ollama"
3634
```
3735
@@ -59,8 +57,6 @@ endpoints:
5957
fetch: false # pinned to the list above; set true to discover models from the server
6058
titleConvo: true
6159
titleModel: "current_model"
62-
summarize: false
63-
summaryModel: "current_model"
6460
modelDisplayLabel: "Ollama"
6561
addParams:
6662
"stop": [

‎content/docs/configuration/librechat_yaml/ai_endpoints/perplexity.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ endpoints:
3636
fetch: false
3737
titleConvo: true
3838
titleModel: "llama-3-sonar-small-32k-chat"
39-
summarize: false
40-
summaryModel: "llama-3-sonar-small-32k-chat"
4139
dropParams: ["stop", "frequency_penalty"]
4240
modelDisplayLabel: "Perplexity"
4341
```

0 commit comments

Comments
 (0)