forked from phoenix/litellm-mirror
feat(slack_alerting.py): support sending daily reports on deployments
allow admin to easily know slow + failing deployments Closes https://github.com/BerriAI/litellm/issues/3483
This commit is contained in:
parent
863f9c60a2
commit
718f423d7d
7 changed files with 400 additions and 25 deletions
|
@ -2597,7 +2597,10 @@ class Router:
|
|||
return model
|
||||
return None
|
||||
|
||||
def get_model_ids(self):
|
||||
def get_model_ids(self) -> List[str]:
|
||||
"""
|
||||
Returns list of model id's.
|
||||
"""
|
||||
ids = []
|
||||
for model in self.model_list:
|
||||
if "model_info" in model and "id" in model["model_info"]:
|
||||
|
@ -2605,7 +2608,7 @@ class Router:
|
|||
ids.append(id)
|
||||
return ids
|
||||
|
||||
def get_model_names(self):
|
||||
def get_model_names(self) -> List[str]:
|
||||
return self.model_names
|
||||
|
||||
def get_model_list(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue