Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Using Mistral AI models with Upsonic
MistralModel
export MISTRAL_API_KEY="..."
from upsonic import Agent, Task from upsonic.models.mistral import MistralModel model = MistralModel(model_name="mistral-large-latest") agent = Agent(model=model) task = Task("Hello, how are you?") result = agent.do(task) print(result)
from upsonic import Agent, Task from upsonic.models.mistral import MistralModel, MistralModelSettings model = MistralModel( model_name="mistral-large-latest", settings=MistralModelSettings(max_tokens=1024, temperature=0.7) ) agent = Agent(model=model)
from upsonic import Agent, Task from upsonic.models.mistral import MistralModelSettings agent = Agent( model="mistral/mistral-large-latest", settings=MistralModelSettings(max_tokens=1024) )
max_tokens
int
temperature
float
top_p
seed
stop_sequences
list[str]
presence_penalty
frequency_penalty
timeout