diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index b188e981f7e..eea6c974939 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -312,16 +312,18 @@ class LiteLLMRoutes(enum.Enum): "/global/spend/provider", ] - public_routes = [ - "/routes", - "/", - "/health/liveliness", - "/health/liveness", - "/health/readiness", - "/test", - "/config/yaml", - "/metrics", - ] + public_routes = set( + [ + "/routes", + "/", + "/health/liveliness", + "/health/liveness", + "/health/readiness", + "/test", + "/config/yaml", + "/metrics", + ] + ) ui_routes = [ "/sso",