fix llm utils routes

This commit is contained in:
Ishaan Jaff 2024-05-17 08:41:46 -07:00
parent c1ed863dfa
commit cae5ecea8e
2 changed files with 2 additions and 4 deletions

View file

@ -87,10 +87,10 @@ class LiteLLMRoutes(enum.Enum):
# models
"/models",
"/v1/models",
# token counter
"utils/token_counter",
]
llm_utils_routes: List = ["utils/token_counter"]
info_routes: List = [
"/key/info",
"/team/info",

View file

@ -1120,8 +1120,6 @@ async def user_api_key_auth(
pass
elif request["route"].name in LiteLLMRoutes.openai_route_names.value:
pass
elif route in LiteLLMRoutes.llm_utils_routes.value:
pass
elif (
route in LiteLLMRoutes.info_routes.value
): # check if user allowed to call an info route