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 3bbaacb commit fd5fd26Copy full SHA for fd5fd26
vllm/entrypoints/openai/api_server.py
@@ -818,7 +818,8 @@ async def validation_exception_handler(_, exc):
818
return JSONResponse(err.model_dump(),
819
status_code=HTTPStatus.BAD_REQUEST)
820
821
- if token := envs.VLLM_API_KEY or args.api_key:
+ # Ensure --api-key option from CLI takes precedence over VLLM_API_KEY
822
+ if token := args.api_key or envs.VLLM_API_KEY:
823
824
@app.middleware("http")
825
async def authentication(request: Request, call_next):
0 commit comments