📑 docs: fix mistral ai api example safe_mode --> safe_prompt (#1541)

This commit is contained in:
Danny Avila 2024-01-13 08:19:09 -05:00 committed by GitHub
parent 690cb9caa1
commit 0c48a9dd6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -117,7 +117,7 @@ endpoints:
forcePrompt: false forcePrompt: false
modelDisplayLabel: "Mistral" modelDisplayLabel: "Mistral"
addParams: addParams:
safe_mode: true safe_prompt: true
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error: # NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:
dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"] dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]
``` ```
@ -242,7 +242,7 @@ endpoints:
- **Example**: - **Example**:
```yaml ```yaml
addParams: addParams:
safe_mode: true safe_prompt: true
``` ```
### **dropParams**: ### **dropParams**:
@ -315,7 +315,7 @@ endpoints:
forcePrompt: false forcePrompt: false
modelDisplayLabel: "Mistral" modelDisplayLabel: "Mistral"
addParams: addParams:
safe_mode: true safe_prompt: true
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error: # NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error:
dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"] dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"]

View file

@ -46,7 +46,7 @@ endpoints:
# Add additional parameters to the request. Default params will be overwritten. # Add additional parameters to the request. Default params will be overwritten.
addParams: addParams:
safe_mode: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/ safe_prompt: true # This field is specific to Mistral AI: https://docs.mistral.ai/api/
# Drop Default params parameters from the request. See default params in guide linked below. # Drop Default params parameters from the request. See default params in guide linked below.
# NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error: # NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error: