diff --git a/lua/plugins/avante.lua b/lua/plugins/avante.lua index 164ba53..6a06313 100644 --- a/lua/plugins/avante.lua +++ b/lua/plugins/avante.lua @@ -3,9 +3,14 @@ return { dependencies = { "nvim-lua/plenary.nvim" }, event = "VeryLazy", opts = { - provider = "ollama", - ollama = { - model = "mistral", -- you can also try "llama3:8b-q4_0" or "gemma" + provider = "openai", + openai = { + endpoint = "https://api.openai.com/v1", + model = "gpt-4o", -- your desired model (or use gpt-4o, etc.) + timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models + temperature = 0, + max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) + --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models }, }, build = "make",