Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Update litellm/proxy/public_endpoints/public_endpoints.py

yuneng-jiang06c90ecf62cb
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(