Skip to content

Commit

Permalink
fix region name imput
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfcabral committed Jan 27, 2025
1 parent 99ed23d commit bbc0243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/aws/langchain_aws/rerank/rerank.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BedrockRerank(BaseDocumentCompressor):
model: Optional[str] = "amazon.rerank-v1:0"
"""Model to use for reranking. Default is amazon.rerank-v1:0."""
aws_region: str = Field(
default_factory=from_env("AWS_DEFAULT_REGION", default="us-west-2")
default_factory=from_env("AWS_DEFAULT_REGION", default=None)
)
"""AWS region to initialize the Bedrock client."""
aws_profile: Optional[str] = Field(
Expand Down

0 comments on commit bbc0243

Please sign in to comment.