Mistral AI
The mistral
provider allows you to use Mistral AI Models
using the Mistral API.
script({ model: "mistral:mistral-large-latest" })
Sign up for a Mistral AI account and obtain an API key from their console.
Add your Mistral AI API key to the
.env
file:.env MISTRAL_API_KEY=...Update your script to use the
model
you choose.script({...model: "mistral:mistral-large-latest",})
Aliases
The following model aliases are attempted by default in GenAIScript.
Alias | Model identifier |
---|---|
large | mistral-large-latest |
small | mistral-small-latest |
vision | pixtral-large-latest |
Limitations
- Ignore prediction of output tokens