fix(router.py): handle id being passed in as int

This commit is contained in:
Krrish Dholakia 2024-04-04 14:22:50 -07:00
parent 9638e244f8
commit 48a5948081
7 changed files with 29 additions and 4 deletions

View file

@ -57,6 +57,8 @@ class LowestLatencyLoggingHandler(CustomLogger):
id = kwargs["litellm_params"].get("model_info", {}).get("id", None)
if model_group is None or id is None:
return
elif isinstance(id, int):
id = str(id)
# ------------
# Setup values
@ -139,6 +141,8 @@ class LowestLatencyLoggingHandler(CustomLogger):
id = kwargs["litellm_params"].get("model_info", {}).get("id", None)
if model_group is None or id is None:
return
elif isinstance(id, int):
id = str(id)
# ------------
# Setup values