chore: ignore invalid linting (#248)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
72ba4ad52e
commit
f03c0918c9
@ -117,6 +117,7 @@ E.parse_envvar = function(Opts)
|
|||||||
if Opts._shellenv ~= nil and Opts._shellenv ~= M.AVANTE_INTERNAL_KEY then
|
if Opts._shellenv ~= nil and Opts._shellenv ~= M.AVANTE_INTERNAL_KEY then
|
||||||
key = os.getenv(Opts._shellenv)
|
key = os.getenv(Opts._shellenv)
|
||||||
if key ~= nil then
|
if key ~= nil then
|
||||||
|
---@diagnostic disable: no-unknown
|
||||||
E.cache[Opts._shellenv] = key
|
E.cache[Opts._shellenv] = key
|
||||||
E.cache[api_key_name] = key
|
E.cache[api_key_name] = key
|
||||||
end
|
end
|
||||||
@ -220,6 +221,7 @@ M = setmetatable(M, {
|
|||||||
---@type AvanteProviderFunctor
|
---@type AvanteProviderFunctor
|
||||||
local Opts = M.get_config(k)
|
local Opts = M.get_config(k)
|
||||||
|
|
||||||
|
---@diagnostic disable: undefined-field,no-unknown,inject-field
|
||||||
if Config.vendors[k] ~= nil then
|
if Config.vendors[k] ~= nil then
|
||||||
Opts.parse_response = Opts.parse_response_data
|
Opts.parse_response = Opts.parse_response_data
|
||||||
t[k] = Opts
|
t[k] = Opts
|
||||||
@ -328,7 +330,7 @@ M.parse_config = function(opts)
|
|||||||
return s1,
|
return s1,
|
||||||
vim
|
vim
|
||||||
.iter(s2)
|
.iter(s2)
|
||||||
:filter(function(k, v)
|
:filter(function(_, v)
|
||||||
return type(v) ~= "function"
|
return type(v) ~= "function"
|
||||||
end)
|
end)
|
||||||
:fold({}, function(acc, k, v)
|
:fold({}, function(acc, k, v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user