mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
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)
This commit is contained in:
parent
1c7b3c75a7
commit
bb69819267
@ -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…
Reference in New Issue
Block a user