from langchain_core.messages import HumanMessage
from langchain_aws import ChatBedrock, BedrockLLM
chat = ChatBedrock(
model_id="mistral.mistral-large-2402-v1:0",
model_kwargs={"temperature": 0.1},
)
messages = [
HumanMessage(
content="Translate this sentence from English to French. I love programming."
)
]
chat.invoke(messages)
Error below:
ValueError: Error raised by bedrock service: 'stop_reason'
The error is present for all mistral models. It's been a few days already since we detected this error.
This is an example with ChatBedrock.
Error below:
The error is present for all mistral models. It's been a few days already since we detected this error.