diff --git a/litellm/router.py b/litellm/router.py index 8abdd60ccad..2d66bc3158d 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -10031,10 +10031,7 @@ class Router: # If still no deployments after checking for fallbacks, raise an error if len(healthy_deployments) == 0: - if self.get_model_list(model_name=model) is None: - message = f"You passed in model={model}. There is no 'model_name' with this string" - else: - message = f"You passed in model={model}. There are no healthy deployments for this model" + message = f"You passed in model={model}. There are no healthy deployments for this model" raise litellm.BadRequestError( message=message,