Skip to content

Commit

Permalink
Replace missed warning_once for rerank API (vllm-project#12472)
Browse files Browse the repository at this point in the history
Signed-off-by: mgoin <[email protected]>
  • Loading branch information
mgoin authored and rasmith committed Jan 30, 2025
1 parent 6b11564 commit 72ad905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/entrypoints/openai/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ async def do_rerank(request: RerankRequest, raw_request: Request):
@router.post("/v1/rerank")
@with_cancellation
async def do_rerank_v1(request: RerankRequest, raw_request: Request):
logger.warning(
logger.warning_once(
"To indicate that the rerank API is not part of the standard OpenAI"
" API, we have located it at `/rerank`. Please update your client"
"accordingly. (Note: Conforms to JinaAI rerank API)")
Expand Down

0 comments on commit 72ad905

Please sign in to comment.