We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ba04b commit 2c55427Copy full SHA for 2c55427
python/sglang/srt/utils.py
@@ -784,6 +784,8 @@ async def authentication(request, call_next):
784
return await call_next(request)
785
if request.url.path.startswith("/health"):
786
787
+ if request.url.path.startswith("/metrics"):
788
+ return await call_next(request)
789
if request.headers.get("Authorization") != "Bearer " + api_key:
790
return ORJSONResponse(content={"error": "Unauthorized"}, status_code=401)
791
0 commit comments