Elffuss BraidHub

kikocis/continue public

627d7d0d1f85 · 1.6 KiBRawPermalink
1---
2title: "How to Set Up Codestral"
3---
4
5**Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:**
6
71. Install the Continue VS Code or JetBrains extension following the instructions [here](/getting-started/install)
8
92. Click on the gear icon in the bottom right corner of the Continue window to open `~/.continue/config.json` (MacOS) / `%userprofile%\.continue\config.json` (Windows)
10
113. Log in and create an API key on Mistral AI's La Plateforme [here](https://console.mistral.ai/codestral). Make sure you get an API key from the "Codestral" page.
12
134. To use Codestral as your model for both `autocomplete` and `chat`, insert your Mistral API key below and add it to your configuration file:
14
15- YAML
16- JSON
17
18config.yaml
19
20```
21models:
22 - name: Codestral
23 provider: mistral
24 model: codestral-latest
25 apiKey: <YOUR_CODESTRAL_API_KEY>
26 apiBase: https://codestral.mistral.ai/v1
27 roles:
28 - chat
29 - autocomplete
30```
31
32config.json
33
34```json
35{
36 "models": [
37 {
38 "title": "Codestral",
39 "provider": "mistral",
40 "model": "codestral-latest",
41 "apiKey": "<YOUR_CODESTRAL_API_KEY>",
42 "apiBase": "https://codestral.mistral.ai/v1"
43 }
44 ],
45 "tabAutocompleteModel": [
46 {
47 "title": "Codestral",
48 "provider": "mistral",
49 "model": "codestral-latest",
50 "apiKey": "<YOUR_CODESTRAL_API_KEY>",
51 "apiBase": "https://codestral.mistral.ai/v1"
52 }
53 ]
54}
55```
56
575. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)