Cohere

Cohere 提供对其模型的免费API访问。 他们的 Command-R+ 模型能与 aider 很好地配合, 作为非常基础的编码助手使用。 你需要一个 Cohere API 密钥

首先,安装 aider:

python -m pip install aider-install
aider-install

然后配置你的 API 密钥:

export COHERE_API_KEY=<key> # Mac/Linux
setx   COHERE_API_KEY <key> # Windows,执行 setx 后需重启 shell

开始使用 aider 和 Cohere 处理你的代码库:


# 切换到你的代码库目录
cd /to/your/project

aider --model command-r-plus-08-2024


# 列出 Cohere 提供的可用模型
aider --list-models cohere_chat/

目录