default the region to us
commit21cfe9a24331a4c2629032017a5bec4a8e94eda3
authorKujtim Hoxha <kujtimii.h@gmail.com>
dateWed 9 Apr 2025, 20:05 (2 years ago)
parent65055c7
internal/llm/provider/bedrock.go+1−1
@@ -40,7 +40,7 @@ func NewBedrockProvider(opts ...BedrockOption) (Provider, error) {
4040 }
4141
4242 if region == "" {
43− return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is required")
43+ region = "us-east-1" // default region
4444 }
4545 if len(region) < 2 {
4646 return nil, errors.New("AWS_REGION or AWS_DEFAULT_REGION environment variable is invalid")