From 2aa0ce50b5438b1c1f4ea0cb8ad2405bc3ef7031 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 24 Jun 2024 19:58:53 -0700 Subject: [PATCH] fix importing litellm --- litellm/proxy/auth/auth_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/auth/auth_utils.py b/litellm/proxy/auth/auth_utils.py index 60e59a58423..cc09a9689b9 100644 --- a/litellm/proxy/auth/auth_utils.py +++ b/litellm/proxy/auth/auth_utils.py @@ -1,6 +1,4 @@ from litellm._logging import verbose_proxy_logger -from litellm.proxy._types import LiteLLMRoutes -from litellm.proxy.proxy_server import general_settings, premium_user def route_in_additonal_public_routes(current_route: str): @@ -25,6 +23,9 @@ def route_in_additonal_public_routes(current_route: str): """ # check if user is premium_user - if not do nothing + from litellm.proxy._types import LiteLLMRoutes + from litellm.proxy.proxy_server import general_settings, premium_user + try: if premium_user is not True: return False