feat(llm): add support for parsing secret vault (#200)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-24 17:52:38 -04:00
committed by GitHub
parent 8d375dd591
commit a7d3defa3d
9 changed files with 161 additions and 121 deletions

View File

@@ -1,7 +1,9 @@
---@class AvanteCopilotProvider: AvanteSupportedProvider
---@field timeout number
local curl = require("plenary.curl")
local Utils = require("avante.utils")
local Config = require("avante.config")
local P = require("avante.providers")
local O = require("avante.providers").openai
@@ -196,7 +198,7 @@ M.parse_curl_args = function(provider, code_opts)
end
local response = curl.get(url, {
timeout = Config.copilot.timeout,
timeout = base.timeout,
headers = headers,
proxy = base.proxy,
insecure = base.allow_insecure,