mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix(providers.opencode): check config for api key in addition to auth (#5906)
This commit is contained in:
parent
855fd07d22
commit
87b5b34280
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue