Skip to content

Commit 0c48a9d

Browse files
authored
📑 docs: fix mistral ai api example safe_mode --> safe_prompt (danny-avila#1541)
1 parent 690cb9c commit 0c48a9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/install/configuration/custom_config.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ endpoints:
117117
forcePrompt: false
118118
modelDisplayLabel: "Mistral"
119119
addParams:
120-
safe_mode: true
120+
safe_prompt: true
121121
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:
122122
dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]
123123
```
@@ -242,7 +242,7 @@ endpoints:
242242
- **Example**:
243243
```yaml
244244
addParams:
245-
safe_mode: true
245+
safe_prompt: true
246246
```
247247

248248
### **dropParams**:
@@ -315,7 +315,7 @@ endpoints:
315315
forcePrompt: false
316316
modelDisplayLabel: "Mistral"
317317
addParams:
318-
safe_mode: true
318+
safe_prompt: true
319319
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:
320320
dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]
321321

librechat.example.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ endpoints:
4646

4747
# Add additional parameters to the request. Default params will be overwritten.
4848
addParams:
49-
safe_mode: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/
49+
safe_prompt: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/
5050

5151
# Drop Default params parameters from the request. See default params in guide linked below.
5252
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:

0 commit comments

Comments
 (0)