mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-30 14:37:14 +08:00
Replace missed warning_once for rerank API (#12472)
Signed-off-by: mgoin <michael@neuralmagic.com>
This commit is contained in:
parent
3fd1fb63ef
commit
0f657bdc52
@ -528,7 +528,7 @@ async def do_rerank(request: RerankRequest, raw_request: Request):
|
|||||||
@router.post("/v1/rerank")
|
@router.post("/v1/rerank")
|
||||||
@with_cancellation
|
@with_cancellation
|
||||||
async def do_rerank_v1(request: RerankRequest, raw_request: Request):
|
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"
|
"To indicate that the rerank API is not part of the standard OpenAI"
|
||||||
" API, we have located it at `/rerank`. Please update your client"
|
" API, we have located it at `/rerank`. Please update your client"
|
||||||
"accordingly. (Note: Conforms to JinaAI rerank API)")
|
"accordingly. (Note: Conforms to JinaAI rerank API)")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user