feat: support deepseek (#69)

The DeepSeek API reduces costs through disk caching, and DeepSeek-Coder-V2-0724 achieves GPT-4-Turbo-0409 level code capabilities with excellent math and reasoning skills.
This commit is contained in:
Chao Li
2024-08-18 21:33:45 +08:00
committed by GitHub
parent b979b3d8ce
commit 6bef72e287
3 changed files with 35 additions and 5 deletions

View File

@@ -81,8 +81,8 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_
```lua
{
---@alias Provider "openai" | "claude" | "azure"
provider = "claude", -- "claude" or "openai" or "azure"
---@alias Provider "openai" | "claude" | "azure" | "deepseek"
provider = "claude", -- "claude" or "openai" or "azure" or "deepseek"
openai = {
endpoint = "https://api.openai.com",
model = "gpt-4o",
@@ -167,6 +167,12 @@ Given its early stage, `avante.nvim` currently supports the following basic func
> ```sh
> export AZURE_OPENAI_API_KEY=your-api-key
> ```
>
> For DeepSeek
>
> ```sh
> export DEEPSEEK_API_KEY=you-api-key
> ```
1. Open a code file in Neovim.
2. Use the `:AvanteAsk` command to query the AI about the code.