use set for public routes

This commit is contained in:
Ishaan Jaff 2025-01-12 16:22:56 -08:00
parent bb1489eced
commit b71021f1bf

View file

@ -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",