mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(router.py): handle id being passed in as int
This commit is contained in:
parent
9638e244f8
commit
48a5948081
7 changed files with 29 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue