Skip to content

Commit

Permalink
Fixes model id for custom model arns (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins authored Jul 31, 2024
1 parent 767fa5a commit 46ea587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/aws/langchain_aws/llms/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def _get_provider(self) -> str:
return self.model_id.split(".")[0]

def _get_model(self) -> str:
return self.model_id.split(".")[1]
return self.model_id.split(".", maxsplit=1)[-1]

@property
def _model_is_anthropic(self) -> bool:
Expand Down

0 comments on commit 46ea587

Please sign in to comment.