fix(providers.opencode): check config for api key in addition to auth (#5906)
parent
855fd07d22
commit
87b5b34280
|
|
@ -85,6 +85,8 @@ export namespace Provider {
|
|||
const env = Env.all()
|
||||
if (input.env.some((item) => env[item])) return true
|
||||
if (await Auth.get(input.id)) return true
|
||||
const config = await Config.get()
|
||||
if (config.provider?.["opencode"]?.options?.apiKey) return true
|
||||
return false
|
||||
})()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue