Elffuss BraidHub

kikocis/continue public

main · 2.0 KiBRawPermalink
1---
2title: "Cohere"
3description: "Configure Cohere's AI models with Continue, including setup for Command A for chat, embed-v4.0 for embeddings, and rerank-v3.5 for reranking capabilities"
4---
5
6Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
7
8## Chat model
9
10We recommend configuring **Command A** as your chat model.
11
12<Tabs>
13 <Tab title="YAML">
14 ```yaml title="config.yaml"
15 models:
16 - name: Command A 03-2025
17 provider: cohere
18 model: command-a-03-2025
19 apiKey: <YOUR_COHERE_API_KEY>
20 ```
21 </Tab>
22 <Tab title="JSON">
23 ```json title="config.json"
24 {
25 "models": [
26 {
27 "title": "Command A 03-2025",
28 "provider": "cohere",
29 "model": "command-a-03-2025",
30 "apiKey": "<YOUR_COHERE_API_KEY>"
31 }
32 ]
33 }
34 ```
35 </Tab>
36</Tabs>
37
38## Autocomplete model
39
40Cohere currently does not offer any autocomplete models.
41
42[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers.
43
44## Embeddings model
45
46We recommend configuring **embed-v4.0** as your embeddings model.
47
48<Tabs>
49 <Tab title="YAML">
50 ```yaml title="config.yaml"
51 models:
52 - name: Cohere Embed v4.0
53 provider: cohere
54 model: embed-v4.0
55 apiKey: <YOUR_COHERE_API_KEY>
56 roles:
57 - embed
58 ```
59 </Tab>
60 <Tab title="JSON">
61 ```json title="config.json"
62 {
63 "embeddingsProvider": {
64 "provider": "cohere",
65 "model": "embed-v4.0",
66 "apiKey": "<YOUR_COHERE_API_KEY>"
67 }
68 }
69 ```
70 </Tab>
71</Tabs>
72
73## Reranking model
74
75We recommend configuring **rerank-v3.5** as your reranking model.
76
77<Tabs>
78 <Tab title="YAML">
79 ```yaml title="config.yaml"
80 models:
81 - name: Cohere Rerank v3.5
82 provider: cohere
83 model: rerank-v3.5
84 apiKey: <YOUR_COHERE_API_KEY>
85 roles:
86 - rerank
87 ```
88 </Tab>
89 <Tab title="JSON">
90 ```json title="config.json"
91 {
92 "reranker": {
93 "name": "cohere",
94 "params": {
95 "model": "rerank-v3.5",
96 "apiKey": "<YOUR_COHERE_API_KEY>"
97 }
98 }
99 }
100 ```
101 </Tab>
102</Tabs>