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
b956cdf8
Unverified
Commit
b956cdf8
authored
Feb 07, 2026
by
Cyrus Leung
Committed by
GitHub
Feb 07, 2026
Browse files
[Doc] Fix run_batch docs (#34056)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
ed17f54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vllm/entrypoints/openai/run_batch.py
vllm/entrypoints/openai/run_batch.py
+5
-2
No files found.
vllm/entrypoints/openai/run_batch.py
View file @
b956cdf8
...
@@ -565,12 +565,15 @@ async def run_request(
...
@@ -565,12 +565,15 @@ async def run_request(
return
batch_output
return
batch_output
WrapperFn
:
TypeAlias
=
Callable
[[
Callable
],
Callable
]
def
handle_endpoint_request
(
def
handle_endpoint_request
(
request
:
BatchRequestInput
,
request
:
BatchRequestInput
,
tracker
:
BatchProgressTracker
,
tracker
:
BatchProgressTracker
,
url_matcher
:
Callable
[[
str
],
bool
],
url_matcher
:
Callable
[[
str
],
bool
],
handler_getter
:
Callable
[[],
Callable
|
None
],
handler_getter
:
Callable
[[],
Callable
|
None
],
wrapper_fn
:
Callable
[[
Callable
],
Callable
]
|
None
=
None
,
wrapper_fn
:
WrapperFn
|
None
=
None
,
)
->
Awaitable
[
BatchRequestOutput
]
|
None
:
)
->
Awaitable
[
BatchRequestOutput
]
|
None
:
"""
"""
Generic handler for endpoint requests.
Generic handler for endpoint requests.
...
@@ -602,7 +605,7 @@ def handle_endpoint_request(
...
@@ -602,7 +605,7 @@ def handle_endpoint_request(
return
run_request
(
handler_fn
,
request
,
tracker
)
return
run_request
(
handler_fn
,
request
,
tracker
)
def
make_transcription_wrapper
(
is_translation
:
bool
):
def
make_transcription_wrapper
(
is_translation
:
bool
)
->
WrapperFn
:
"""
"""
Factory function to create a wrapper for transcription/translation handlers.
Factory function to create a wrapper for transcription/translation handlers.
The wrapper converts BatchTranscriptionRequest or BatchTranslationRequest
The wrapper converts BatchTranscriptionRequest or BatchTranslationRequest
...
...
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