Unverified Commit 0f657bdc authored by Michael Goin's avatar Michael Goin Committed by GitHub
Browse files

Replace missed warning_once for rerank API (#12472)


Signed-off-by: default avatarmgoin <michael@neuralmagic.com>
parent 3fd1fb63
......@@ -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)")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment