docs/customize/model-providers/more/cohere.mdx
Before using Cohere, visit the Cohere dashboard to create an API key.
We recommend configuring Command A as your chat model.
<Tabs> <Tab title="YAML"> ```yaml title="config.yaml" name: My Config version: 0.0.1 schema: v1models: - name: Command A 03-2025 provider: cohere model: command-a-03-2025 apiKey: <YOUR_COHERE_API_KEY>
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
{
"title": "Command A 03-2025",
"provider": "cohere",
"model": "command-a-03-2025",
"apiKey": "<YOUR_COHERE_API_KEY>"
}
]
}
Cohere currently does not offer any autocomplete models.
Click here to see a list of autocomplete model providers.
We recommend configuring embed-v4.0 as your embeddings model.
<Tabs> <Tab title="YAML"> ```yaml title="config.yaml" name: My Config version: 0.0.1 schema: v1models: - name: Cohere Embed v4.0 provider: cohere model: embed-v4.0 apiKey: <YOUR_COHERE_API_KEY> roles: - embed
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
"provider": "cohere",
"model": "embed-v4.0",
"apiKey": "<YOUR_COHERE_API_KEY>"
}
}
We recommend configuring rerank-v3.5 as your reranking model.
<Tabs> <Tab title="YAML"> ```yaml title="config.yaml" name: My Config version: 0.0.1 schema: v1models: - name: Cohere Rerank v3.5 provider: cohere model: rerank-v3.5 apiKey: <YOUR_COHERE_API_KEY> roles: - rerank
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
"name": "cohere",
"params": {
"model": "rerank-v3.5",
"apiKey": "<YOUR_COHERE_API_KEY>"
}
}
}