You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/providers/mistral.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,8 @@ Roo Code supports accessing models through the Mistral AI API, including both st
7
7
## Getting an API Key
8
8
9
9
1.**Sign Up/Sign In:** Go to the [Mistral Platform](https://console.mistral.ai/). Create an account or sign in. You may need to go through a verification process.
10
-
2.**Navigate to API Keys:** Navigate to the [API Keys](https://console.mistral.ai/api-keys/) page.
11
-
3.**Create a Key:** Create a new API key. Give it a descriptive name (e.g., "Roo Code").
12
-
4.**Copy the Key:****Important:** Copy the API key *immediately*. You will not be able to see it again. Store it securely.
10
+
2.**Create an API Keys:** Get a [Mistral API Key](https://console.mistral.ai/api-keys/) and/or a [Codestral API Key](https://console.mistral.ai/codestral).
11
+
3.**Copy the Key:****Important:** Copy the API key *immediately*. You will not be able to see it again. Store it securely.
13
12
14
13
## Supported Models
15
14
@@ -28,21 +27,17 @@ Roo Code supports the following Mistral models, along with their context window
28
27
29
28
1.**Open Roo Code Settings:** Click the gear icon (<Codiconname="gear" />) in the Roo Code panel.
30
29
2.**Select Provider:** Choose "Mistral" from the "API Provider" dropdown.
31
-
3.**Enter API Key:** Paste your Mistral API key into the "API Key" field.
32
-
4.**Select Model:** Choose your desired model from the "Model ID" dropdown. If you intend to use `codestral-latest`, see the "Codestral" section below.
33
-
5.**(Optional) Codestral URL:** If you are using a Codestral model, make sure to enter `https://codestral.mistral.ai` into the "Codestral Base URL" box.
30
+
3.**Enter API Key:** Paste your Mistral API key into the "Mistral API Key" field if you're using a `mistral` model. If you intend to use `codestral-latest`, see the "Codestral" section below.
31
+
4.**Select Model:** Choose your desired model from the "Model" dropdown.
34
32
35
33
## Using Codestral
36
34
37
35
Codestral is a model specifically designed for code generation and interaction. To use Codestral:
38
36
39
37
1.**Select "Mistral" as the API Provider.**
40
-
2.**Enter your Mistral API Key.** (The same API key works for both the standard Mistral API and the Codestral endpoint.)
38
+
2.**Enter your Codestral API Key.**
41
39
3.**Select a Codestral Model:** Choose a model with the `codestral-` prefix from the "Model ID" dropdown (e.g., `codestral-latest`).
42
-
4.**Set the Codestral Base URL:** Enter `https://codestral.mistral.ai` in the "Codestral Base URL" field. This field appears only when a Codestral model is selected. If you do *not* set this URL correctly, requests to Codestral will fail.
43
40
44
41
## Tips and Notes
45
42
46
-
***Pricing:** Refer to the [Mistral AI pricing](https://mistral.ai/pricing/) page for details on model costs.
47
-
***Prompt Caching:** At the moment, the models do not support prompt caching.
48
-
***Codestral:** Remember to set the `Codestral Base URL` when using Codestral models. The standard Mistral models use the default base URL (`https://api.mistral.ai`).
43
+
***Pricing:** Refer to the [Mistral AI pricing](https://mistral.ai/pricing/) page for details on model costs.
0 commit comments