default the region to us
This commit is contained in:
parent
65055c7687
commit
21cfe9a243
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func NewBedrockProvider(opts ...BedrockOption) (Provider, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if region == "" {
|
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 {
|
if len(region) < 2 {
|
||||||
return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is invalid")
|
return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is invalid")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue