Skip to content

Commit

Permalink
Change to not modify model_id
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnchin committed Dec 18, 2024
1 parent 1d28fe7 commit 86f6e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/aws/langchain_aws/chat_models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ def get_lc_namespace(cls) -> List[str]:
@model_validator(mode="before")
@classmethod
def set_beta_use_converse_api(cls, values: Dict) -> Any:
model_id = values.get("model_id", values.get("model")) or ""
model_id = values.get("model_id", values.get("model"))

if "beta_use_converse_api" not in values:
if model_id is not None and "beta_use_converse_api" not in values:
values["beta_use_converse_api"] = "nova" in model_id
return values

Expand Down

0 comments on commit 86f6e0d

Please sign in to comment.