DeepSeek
Aider 可以连接 DeepSeek.com 的 API。
要使用 DeepSeek 的模型,您需要设置 DEEPSEEK_API_KEY
环境变量,并提供您的 DeepSeek API 密钥。
DeepSeek Chat V3 模型在 aider 的代码编辑基准测试中获得了最高分。
首先,安装 aider:
python -m pip install aider-install
aider-install
然后配置您的 API 密钥:
export DEEPSEEK_API_KEY=<key> # Mac/Linux
setx DEEPSEEK_API_KEY <key> # Windows,使用 setx 后需重启 shell
开始在您的代码库中使用 aider 和 DeepSeek:
# 切换到您的代码库目录
cd /to/your/project
# 使用 DeepSeek Chat v3 模型
aider --model deepseek/deepseek-chat