added ollama provider as the default one locally

This commit is contained in:
aminnairi
2026-03-18 22:44:29 +01:00
parent 248fb63159
commit 5fce7963d0
+9 -2
View File
@@ -2,8 +2,8 @@ return {
"yetone/avante.nvim", "yetone/avante.nvim",
opts = { opts = {
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string ---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
provider = "claude", -- Recommend using Claude provider = "ollama",
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 auto_suggestions_provider = "ollama",
providers = { providers = {
claude = { claude = {
endpoint = "https://api.anthropic.com", endpoint = "https://api.anthropic.com",
@@ -13,6 +13,13 @@ return {
max_tokens = 8192, max_tokens = 8192,
}, },
}, },
ollama = {
endpoint = "http://ollama.nairi.local",
model = "qwen2.5-coder:7b",
extra_request_body = {
temperature = 0,
},
},
}, },
behaviour = { behaviour = {
auto_suggestions = false, -- Experimental stage auto_suggestions = false, -- Experimental stage