add baidu
This commit is contained in:
parent
ab9127fcbc
commit
71ac22a864
lua/avante
@ -149,6 +149,7 @@ M._defaults = {
|
||||
timeout = 30000, -- Timeout in milliseconds
|
||||
temperature = 0,
|
||||
max_tokens = 8000,
|
||||
appid = "app-QzGDePL0",
|
||||
},
|
||||
---@type AvanteSupportedProvider
|
||||
["claude-opus"] = {
|
||||
|
@ -283,6 +283,9 @@ M.parse_curl_args = function(provider, prompt_opts)
|
||||
["Content-Type"] = "application/json",
|
||||
}
|
||||
|
||||
-- Add appid header for baidu provider
|
||||
if Config.provider == "baidu" then headers["appid"] = "app-QzGDePL0" end
|
||||
|
||||
if P.env.require_api_key(base) then
|
||||
local api_key = provider.parse_api_key()
|
||||
if api_key == nil then
|
||||
|
Loading…
x
Reference in New Issue
Block a user