Elffuss BraidHub

kikocis/continue public

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