fix(providers.opencode): check config for api key in addition to auth (#5906)

This commit is contained in:
Blake North
2025-12-22 13:20:40 -08:00
committed by GitHub
parent 855fd07d22
commit 87b5b34280

View File

@@ -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
})()