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 = {
-- 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`