Mistral AI provides high-performance open and commercial models including Mistral Large and Codestral. Known for strong performance and European values.Model Class:MistralModel
Authentication
export MISTRAL_API_KEY="..."
Examples
from upsonic import Agent, Taskfrom upsonic.models.mistral import MistralModelmodel = MistralModel(model_name="mistral-large-latest")agent = Agent(model=model)task = Task("Hello, how are you?")result = agent.do(task)print(result)
Model Settings
You can set model parameters in two ways: on the model or on the Agent.On the model: