diff --git a/libs/community/langchain_community/llms/bedrock.py b/libs/community/langchain_community/llms/bedrock.py index da0b23b4edfa2..bc6431e31b8ac 100644 --- a/libs/community/langchain_community/llms/bedrock.py +++ b/libs/community/langchain_community/llms/bedrock.py @@ -368,8 +368,8 @@ def _get_provider(self) -> str: "Model provider should be supplied when passing a model ARN as " "model_id" ) - else: - return self.model_id.split(".")[0] + + return self.model_id.split(".")[0] @property def _model_is_anthropic(self) -> bool: