feat: support groq (#70)

* adding groq to config

* updated readme with groq
This commit is contained in:
franklin
2024-08-18 12:11:39 -04:00
committed by GitHub
parent 834bb9ea77
commit 0fddfc7d8f
3 changed files with 40 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" | "deepseek"
provider = "claude", -- "claude" or "openai" or "azure" or "deepseek"
---@alias Provider "openai" | "claude" | "azure" | "deepseek" | "groq"
provider = "claude", -- "claude" or "openai" or "azure" or "deepseek" or "groq"
openai = {
endpoint = "https://api.openai.com",
model = "gpt-4o",
@@ -173,6 +173,12 @@ Given its early stage, `avante.nvim` currently supports the following basic func
> ```sh
> export DEEPSEEK_API_KEY=you-api-key
> ```
>
> For Groq
>
> ```sh
> export GROQ_API_KEY=you-api-key
> ```
1. Open a code file in Neovim.
2. Use the `:AvanteAsk` command to query the AI about the code.