Elffuss BraidHub

kikocis/continue public

main · 1.1 KiBRawPermalink
1---
2title: Mistral
3slug: ../mistral
4---
5
6<Tip>
7 **Discover Mistral models [here](https://hub.continue.dev/mistral)**
8</Tip>
9
10<Info>
11 Get an API key from the [Mistral Dashboard](https://console.mistral.ai)
12</Info>
13
14## Configuration
15
16<Tabs>
17 <Tab title="YAML">
18 ```yaml title="config.yaml"
19 models:
20 - name: <MODEL_NAME>
21 provider: mistral
22 model: <MODEL_ID>
23 apiKey: <YOUR_MISTRAL_API_KEY>
24 ```
25 </Tab>
26 <Tab title="JSON (Deprecated)">
27 ```json title="config.json"
28 {
29 "models": [
30 {
31 "title": "<MODEL_NAME>",
32 "provider": "mistral",
33 "model": "<MODEL_ID>",
34 "apiKey": "<YOUR_MISTRAL_API_KEY>"
35 }
36 ]
37 }
38 ```
39 </Tab>
40</Tabs>
41
42<Info>
43 **Check out a more advanced configuration [here](https://hub.continue.dev/mistral/codestral?view=config)**
44</Info>
45
46<Note>
47 The API key for `codestral.mistral.ai` is different from `api.mistral.ai`.
48 If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`.
49 Otherwise, we will default to using `https://api.mistral.ai/v1`.
50</Note>