mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix llm utils routes
This commit is contained in:
parent
c1ed863dfa
commit
cae5ecea8e
2 changed files with 2 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue