mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
default the region to us
This commit is contained in:
@@ -40,7 +40,7 @@ func NewBedrockProvider(opts ...BedrockOption) (Provider, error) {
|
||||
}
|
||||
|
||||
if region == "" {
|
||||
return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is required")
|
||||
region = "us-east-1" // default region
|
||||
}
|
||||
if len(region) < 2 {
|
||||
return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is invalid")
|
||||
|
||||
Reference in New Issue
Block a user