fix: api key name (#169)

Co-authored-by: Jihun Kim <jihunk@google.com>
This commit is contained in:
jihunkim0 2024-08-23 10:59:02 +01:00 committed by GitHub
parent d7af33887d
commit 79e9aac1af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ local P = require("avante.providers")
---@class AvanteProviderFunctor ---@class AvanteProviderFunctor
local M = {} local M = {}
M.api_key_name = "GROQ_API_KEY" M.api_key_name = "GEMINI_API_KEY"
M.has = function() M.has = function()
return os.getenv(M.api_key_name) and true or false return os.getenv(M.api_key_name) and true or false