mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
added ollama provider as the default one locally
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user