From d0903e9ec0c4b7d4164d1be43439dfc5a36c1eac Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Thu, 26 Feb 2026 20:42:47 -0800 Subject: [PATCH] Update litellm/proxy/public_endpoints/public_endpoints.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/public_endpoints/public_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/public_endpoints/public_endpoints.py b/litellm/proxy/public_endpoints/public_endpoints.py index d611a454010..ac5d9126145 100644 --- a/litellm/proxy/public_endpoints/public_endpoints.py +++ b/litellm/proxy/public_endpoints/public_endpoints.py @@ -337,8 +337,8 @@ async def get_supported_endpoints() -> SupportedEndpointsResponse: """ global _cached_endpoints if _cached_endpoints is None: - _cached_endpoints = _load_endpoints() - return SupportedEndpointsResponse(endpoints=_cached_endpoints) + _cached_endpoints = SupportedEndpointsResponse(endpoints=_load_endpoints()) + return _cached_endpoints @router.get(