mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
fix(providers.opencode): check config for api key in addition to auth (#5906)
This commit is contained in:
@@ -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
|
||||
})()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user