Explorar o código

default the region to us

Kujtim Hoxha hai 11 meses
pai
achega
21cfe9a243
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/llm/provider/bedrock.go

+ 1 - 1
internal/llm/provider/bedrock.go

@@ -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")