From 0c48a9dd6ee0e647870cdfa87b9f754c6847d1ca Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Sat, 13 Jan 2024 08:19:09 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=91=20docs:=20fix=20mistral=20ai=20api?= =?UTF-8?q?=20example=20`safe=5Fmode`=20-->=20`safe=5Fprompt`=20(#1541)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/install/configuration/custom_config.md | 6 +++--- librechat.example.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/install/configuration/custom_config.md b/docs/install/configuration/custom_config.md index cbd813af20..6847e158ed 100644 --- a/docs/install/configuration/custom_config.md +++ b/docs/install/configuration/custom_config.md @@ -117,7 +117,7 @@ endpoints: forcePrompt: false modelDisplayLabel: "Mistral" 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: dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"] ``` @@ -242,7 +242,7 @@ endpoints: - **Example**: ```yaml addParams: - safe_mode: true + safe_prompt: true ``` ### **dropParams**: @@ -315,7 +315,7 @@ endpoints: forcePrompt: false modelDisplayLabel: "Mistral" 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: dropParams: ["stop", "user", "frequency_penalty", "presence_penalty"] diff --git a/librechat.example.yaml b/librechat.example.yaml index 919bb829f4..faf7b5e147 100644 --- a/librechat.example.yaml +++ b/librechat.example.yaml @@ -46,7 +46,7 @@ endpoints: # Add additional parameters to the request. Default params will be overwritten. 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. # NOTE: For Mistral, it is necessary to drop the following parameters or you will encounter a 422 Error: