From 3c7caa21c6922bb8266af4135f6997308c58d0d2 Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Thu, 24 Apr 2025 15:41:35 -0300 Subject: [PATCH] Change to avante openai --- lua/plugins/avante.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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",