Mistral
Caret supports accessing models through the Mistral AI API, including both standard Mistral models and the code-specialized Codestral model.
Website: https://mistral.ai/
Getting an API Key
- Sign Up/Sign In: Go to the Mistral Platform. Create an account or sign in. You may need to go through a verification process.
- Create an API Key:
Supported Models
Caret supports the following Mistral models:
- pixtral-large-2411
- ministral-3b-2410
- ministral-8b-2410
- mistral-small-latest
- mistral-medium-latest
- mistral-small-2501
- pixtral-12b-2409
- open-mistral-nemo-2407
- open-codestral-mamba
- codestral-2501
- devstral-small-2505
Note: Model availability and specifications may change. Refer to the Mistral AI documentation and Mistral Model Overview for the most current information.
Configuration in Caret
- Open Caret Settings: Click the settings icon (⚙️) in the Caret panel.
- Select Provider: Choose "Mistral" from the "API Provider" dropdown.
- Enter API Key: Paste your Mistral API key into the "Mistral API Key" field if you're using a standard
mistral
model. If you intend to usecodestral-latest
, see the "Using Codestral" section below. - Select Model: Choose your desired model from the "Model" dropdown.
Using Codestral
Codestral is a model specifically designed for code generation and interaction.
For Codestral, you can use different endpoints (Default: codestral.mistral.ai).
If using the La Plateforme API Key for Codestral, change the Codestral Base Url to: https://api.mistral.ai
To use Codestral with Caret:
- Select "Mistral" as the API Provider in Caret Settings.
- Select a Codestral Model (e.g.,
codestral-latest
) from the "Model" dropdown. - Enter your Codestral API Key (from
codestral.mistral.ai
) or your La Plateforme API Key (fromapi.mistral.ai
) into the appropriate API key field in Caret.