From b71021f1bf49b46e04329cd97b8c969d3fdf41d4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sun, 12 Jan 2025 16:22:56 -0800 Subject: [PATCH] use set for public routes --- litellm/proxy/_types.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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",