forked from phoenix/litellm-mirror
(feat) proxy: protect health endpoint
This commit is contained in:
parent
1b43c7120c
commit
19b1deb200
1 changed files with 1 additions and 1 deletions
|
@ -1281,7 +1281,7 @@ async def retrieve_server_log(request: Request):
|
||||||
async def test_endpoint(request: Request):
|
async def test_endpoint(request: Request):
|
||||||
return {"route": request.url.path}
|
return {"route": request.url.path}
|
||||||
|
|
||||||
@router.get("/health", description="Check the health of all the endpoints in config.yaml", tags=["health"])
|
@router.get("/health", description="Check the health of all the endpoints in config.yaml", tags=["health"], dependencies=[Depends(user_api_key_auth)])
|
||||||
async def health_endpoint(request: Request, model: Optional[str] = fastapi.Query(None, description="Specify the model name (optional)")):
|
async def health_endpoint(request: Request, model: Optional[str] = fastapi.Query(None, description="Specify the model name (optional)")):
|
||||||
global llm_model_list
|
global llm_model_list
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue