File size: 335 Bytes
3610943 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from langchain_mistralai import ChatMistralAI
llm = ChatMistralAI(
model="mistral-small-latest",
temperature=0,
max_retries=2,
# other params...
)
llm_structured = ChatMistralAI(
model="mistral-small-latest",
temperature=0,
max_retries=2,
# other params...
).with_structured_output(method="json_mode")
|