mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(utils.py): update only if value is non-null
This commit is contained in:
parent
175803d114
commit
ea15231b4a
1 changed files with 2 additions and 1 deletions
|
@ -2245,7 +2245,8 @@ def supports_embedding_image_input(
|
||||||
####### HELPER FUNCTIONS ################
|
####### HELPER FUNCTIONS ################
|
||||||
def _update_dictionary(existing_dict: Dict, new_dict: dict) -> dict:
|
def _update_dictionary(existing_dict: Dict, new_dict: dict) -> dict:
|
||||||
for k, v in new_dict.items():
|
for k, v in new_dict.items():
|
||||||
existing_dict[k] = v
|
if v is not None:
|
||||||
|
existing_dict[k] = v
|
||||||
|
|
||||||
return existing_dict
|
return existing_dict
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue