Update litellm/proxy/public_endpoints/public_endpoints.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
yuneng-jiang 2026-02-26 20:42:47 -08:00 committed by GitHub
parent fc69d6e8d1
commit 06c90ecf62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(