From 388652dad8e0c4ed5495c7c94717c99a1cdc7fa0 Mon Sep 17 00:00:00 2001 From: Dinesh Salunke Date: Sat, 5 Apr 2025 18:00:12 +0530 Subject: [PATCH] refactor: add the self hosted deepseek ai to the provider --- lua/plugins/avante.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/plugins/avante.lua b/lua/plugins/avante.lua index fb22662..d61456a 100644 --- a/lua/plugins/avante.lua +++ b/lua/plugins/avante.lua @@ -6,14 +6,14 @@ return { opts = { -- add any opts here -- for example - 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_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) - --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models + provider = "openrouter", + vendors = { + openrouter = { + __inherited_from = "openai", + endpoint = "https://agent-ntmomgqaacrtahpdyjsdnynx-ywn9a.ondigitalocean.app/api/v1", + api_key_name = "DO_GEN_AI_API_KEY", + model = "deepseek/deepseek-r1", + }, }, }, -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`