Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0f657bdc
Unverified
Commit
0f657bdc
authored
Jan 28, 2025
by
Michael Goin
Committed by
GitHub
Jan 28, 2025
Browse files
Replace missed warning_once for rerank API (#12472)
Signed-off-by:
mgoin
<
michael@neuralmagic.com
>
parent
3fd1fb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/entrypoints/openai/api_server.py
vllm/entrypoints/openai/api_server.py
+1
-1
No files found.
vllm/entrypoints/openai/api_server.py
View file @
0f657bdc
...
@@ -528,7 +528,7 @@ async def do_rerank(request: RerankRequest, raw_request: Request):
...
@@ -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)"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment