mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 19:09:57 +00:00
community: Bump ruff version to 0.9 (#29206)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
30f6c9f5c8
commit
723031d548
@@ -454,8 +454,7 @@ class BedrockBase(BaseModel, ABC):
|
||||
return self.provider
|
||||
if self.model_id.startswith("arn"):
|
||||
raise ValueError(
|
||||
"Model provider should be supplied when passing a model ARN as "
|
||||
"model_id"
|
||||
"Model provider should be supplied when passing a model ARN as model_id"
|
||||
)
|
||||
|
||||
return self.model_id.split(".")[0]
|
||||
|
Reference in New Issue
Block a user