Skip to content

Commit

Permalink
update avaent config
Browse files Browse the repository at this point in the history
  • Loading branch information
resticDOG committed Dec 30, 2024
1 parent 962939f commit e537008
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ following conditions need to be met before usage:

## Usage

### Windows Platform
### Windows

- Install `Neovim`, `gcc`, `make`, `ripgrep`

Expand Down Expand Up @@ -42,4 +42,4 @@ cd nvim-nvchad-config
nvim
```

### Linux Platform (TODO)
### Linux
4 changes: 2 additions & 2 deletions lua/custom/chadrc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ local M = {}
local highlights = require "custom.highlights"

M.ui = {
theme_toggle = { "ayu_light", "ayu_light" },
theme = "ayu_light",
theme_toggle = { "one_light", "one_light" },
theme = "one_light",
hl_override = highlights.override,
hl_add = highlights.add,

Expand Down
43 changes: 34 additions & 9 deletions lua/custom/configs/avante.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,39 @@ end

avante.setup {
-- add any opts here
provider = "openai",
auto_suggestions_provider = "openai",
openai = {
endpoint = "https://models.inference.ai.azure.com/chat/completions#",
model = "gpt-4o",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
provider = "groq",
auto_suggestions_provider = "qwen",
vendors = {
groq = {
__inherited_from = "openai",
api_key_name = "GROQ_API_KEY",
endpoint = "https://api.groq.com/openai/v1/",
model = "llama-3.1-70b-versatile",
},
github_model = {
__inherited_from = "openai",
api_key_name = "GITHUB_API_KEY",
endpoint = "https://models.inference.ai.azure.com/chat/completions#",
model = "gpt-4o",
},
ollama = {
__inherited_from = "openai",
api_key_name = "",
endpoint = "http://10.1.1.63:11434/v1",
model = "qwen2.5-coder",
},
qwen = {
__inherited_from = "openai",
api_key_name = "",
endpoint = "http://10.1.1.63:11434/v1",
model = "qwen2.5-coder:1.5b",
},
starcoder = {
__inherited_from = "openai",
api_key_name = "",
endpoint = "http://10.1.1.63:11434/v1",
model = "starcoder2:7b",
},
},
dual_boost = {
enabled = false,
Expand All @@ -22,7 +47,7 @@ avante.setup {
timeout = 60000, -- Timeout in milliseconds
},
behaviour = {
auto_suggestions = true, -- Experimental stage
auto_suggestions = false, -- Experimental stage
auto_set_highlight_group = true,
auto_set_keymaps = true,
auto_apply_diff_after_generation = false,
Expand Down
10 changes: 10 additions & 0 deletions lua/custom/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ local plugins = {
},
},
},

-- copilot
-- {
-- "zbirenbaum/copilot.lua",
-- cmd = "Copilot",
-- event = "InsertEnter",
-- config = function()
-- require("copilot").setup {}
-- end,
-- },
}

return plugins

0 comments on commit e537008

Please sign in to comment.