diff --git a/sources/nvim/lua/plugins/avante.lua b/sources/nvim/lua/plugins/avante.lua index 3875f30..0dc794d 100644 --- a/sources/nvim/lua/plugins/avante.lua +++ b/sources/nvim/lua/plugins/avante.lua @@ -2,8 +2,8 @@ return { "yetone/avante.nvim", opts = { ---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string - provider = "claude", -- Recommend using Claude - auto_suggestions_provider = "claude", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot + provider = "ollama", + auto_suggestions_provider = "ollama", providers = { claude = { endpoint = "https://api.anthropic.com", @@ -13,6 +13,13 @@ return { max_tokens = 8192, }, }, + ollama = { + endpoint = "http://ollama.nairi.local", + model = "qwen2.5-coder:7b", + extra_request_body = { + temperature = 0, + }, + }, }, behaviour = { auto_suggestions = false, -- Experimental stage