Spaces:
Configuration error
Configuration error
#### Analytics Endpoints ##### | |
from fastapi import APIRouter | |
from litellm.types.proxy.discovery_endpoints.ui_discovery_endpoints import ( | |
UiDiscoveryEndpoints, | |
) | |
router = APIRouter() | |
# if mounted at root path | |
async def get_ui_config(): | |
from litellm.proxy.utils import get_proxy_base_url, get_server_root_path | |
return UiDiscoveryEndpoints( | |
server_root_path=get_server_root_path(), proxy_base_url=get_proxy_base_url() | |
) | |