mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
chore: generate
This commit is contained in:
parent
893888536a
commit
896d18ab3f
1 changed files with 2 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ export namespace Provider {
|
|||
const awsProfile = Env.get("AWS_PROFILE")
|
||||
const awsAccessKeyId = Env.get("AWS_ACCESS_KEY_ID")
|
||||
const awsRegion = Env.get("AWS_REGION")
|
||||
|
||||
|
||||
const awsBearerToken = iife(() => {
|
||||
const envToken = Env.get("AWS_BEARER_TOKEN_BEDROCK")
|
||||
if (envToken) return envToken
|
||||
|
|
@ -179,7 +179,7 @@ export namespace Provider {
|
|||
}
|
||||
return undefined
|
||||
})
|
||||
|
||||
|
||||
if (!awsProfile && !awsAccessKeyId && !awsBearerToken) return { autoload: false }
|
||||
|
||||
const defaultRegion = awsRegion ?? "us-east-1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue