fix(provider): key error (fixes #291) (#292)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-27 13:54:16 -04:00 committed by GitHub
parent 10f27d2040
commit 01d12ccf98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ E.setup = function(opts)
opts.provider.setup() opts.provider.setup()
-- check if var is a all caps string -- check if var is a all caps string
if var == M.AVANTE_INTERNAL_KEY or var:match("^cmd:(.*)") or opts.providers["local"] == true then if var == M.AVANTE_INTERNAL_KEY or var:match("^cmd:(.*)") or opts.provider["local"] == true then
return return
end end