community: Fix the stop sequence key name for Mistral in Bedrock (#20709)

Fixing the wrong stop sequence key name that causes an error on AWS
Bedrock.
You can check the MistralAI bedrock parameters
[here](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-mistral.html)
This change fixes this
[issue](https://github.com/langchain-ai/langchain/issues/20095)
pull/20212/head^2
Matheus Henrique Raymundo 2 months ago committed by GitHub
parent 1c7b3c75a7
commit bb69819267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -339,7 +339,7 @@ class BedrockBase(BaseModel, ABC):
"amazon": "stopSequences",
"ai21": "stop_sequences",
"cohere": "stop_sequences",
"mistral": "stop_sequences",
"mistral": "stop",
}
guardrails: Optional[Mapping[str, Any]] = {

Loading…
Cancel
Save