refactor: add the self hosted deepseek ai to the provider

This commit is contained in:
Dinesh Salunke 2025-04-05 18:00:12 +05:30
parent 25239c1a26
commit 388652dad8

View File

@ -6,14 +6,14 @@ return {
opts = { opts = {
-- add any opts here -- add any opts here
-- for example -- for example
provider = "openai", provider = "openrouter",
openai = { vendors = {
endpoint = "https://api.openai.com/v1", openrouter = {
model = "gpt-4o", -- your desired model (or use gpt-4o, etc.) __inherited_from = "openai",
timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models endpoint = "https://agent-ntmomgqaacrtahpdyjsdnynx-ywn9a.ondigitalocean.app/api/v1",
temperature = 0, api_key_name = "DO_GEN_AI_API_KEY",
max_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) model = "deepseek/deepseek-r1",
--reasoning_effort = "medium", -- low|medium|high, only used for reasoning models },
}, },
}, },
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`