Skip to content

Commit

Permalink
Update libs/aws/langchain_aws/chat_models/bedrock.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3coins authored Dec 18, 2024
1 parent 86f6e0d commit 5d27ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/aws/langchain_aws/chat_models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def get_lc_namespace(cls) -> List[str]:
def set_beta_use_converse_api(cls, values: Dict) -> Any:
model_id = values.get("model_id", values.get("model"))

if model_id is not None and "beta_use_converse_api" not in values:
if model_id 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 5d27ece

Please sign in to comment.