forked from phoenix/litellm-mirror
fix(proxy_server.py): return none if no model list set in router
https://github.com/BerriAI/litellm/issues/2979
This commit is contained in:
parent
e28120a7cc
commit
43c37c31ea
2 changed files with 3 additions and 4 deletions
|
@ -2306,7 +2306,9 @@ class Router:
|
|||
return self.model_names
|
||||
|
||||
def get_model_list(self):
|
||||
return self.model_list
|
||||
if hasattr(self, "model_list"):
|
||||
return self.model_list
|
||||
return None
|
||||
|
||||
def _get_client(self, deployment, kwargs, client_type=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue