mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(litellm_logging.py): add stricter check for special param being non none
This commit is contained in:
parent
0091f64ff1
commit
77a6f597e0
1 changed files with 1 additions and 1 deletions
|
@ -2157,7 +2157,7 @@ def use_custom_pricing_for_model(litellm_params: Optional[dict]) -> bool:
|
|||
if litellm_params is None:
|
||||
return False
|
||||
for k, v in litellm_params.items():
|
||||
if k in SPECIAL_MODEL_INFO_PARAMS:
|
||||
if k in SPECIAL_MODEL_INFO_PARAMS and v is not None:
|
||||
return True
|
||||
metadata: Optional[dict] = litellm_params.get("metadata", {})
|
||||
if metadata is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue