mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 13:06:35 +05:30
feat(neovim): add hyperbolic and deepseek provider
This commit is contained in:
@ -1,28 +1,20 @@
|
|||||||
local opts = {
|
local opts = {
|
||||||
provider = "ollama",
|
provider = "hyperbolic",
|
||||||
vendors = {
|
vendors = {
|
||||||
ollama = {
|
deepseek = {
|
||||||
["local"] = true,
|
__inherited_from = "openai",
|
||||||
endpoint = "100.64.0.1:11434/v1",
|
api_key_name = "DEEPSEEK_API_KEY",
|
||||||
model = "deepseek-coder-v2",
|
endpoint = "https://api.deepseek.com/v1",
|
||||||
parse_curl_args = function(opts, code_opts)
|
model = "deepseek-chat",
|
||||||
return {
|
},
|
||||||
url = opts.endpoint .. "/chat/completions",
|
|
||||||
headers = {
|
hyperbolic = {
|
||||||
["Accept"] = "application/json",
|
__inherited_from = "openai",
|
||||||
["Content-Type"] = "application/json",
|
api_key_name = "DEEPSEEK_API_KEY",
|
||||||
},
|
endpoint = "https://api.hyperbolic.xyz/v1",
|
||||||
body = {
|
model = "deepseek-ai/DeepSeek-V3",
|
||||||
model = opts.model,
|
temperature = 0,
|
||||||
messages = require("avante.providers").copilot.parse_message(code_opts),
|
max_tokens = 4096,
|
||||||
max_tokens = 2048,
|
|
||||||
stream = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
parse_response_data = function(data_stream, event_state, opts)
|
|
||||||
require("avante.providers").openai.parse_response(data_stream, event_state, opts)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user