Skip to content

Commit

Permalink
Fix bug in _drop_none (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagotps authored Jul 11, 2024
1 parent a4a048f commit 7f6ffb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/aws/langchain_aws/chat_models/bedrock_converse.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def _snake_to_camel_keys(obj: _T) -> _T:
def _drop_none(obj: Any) -> Any:
if isinstance(obj, dict):
new = {k: _drop_none(v) for k, v in obj.items() if _drop_none(v) is not None}
return new or None
return new
else:
return obj

Expand Down

0 comments on commit 7f6ffb8

Please sign in to comment.