[Bugfix][Frontend] Accept diarized transcription responses in run-batch (#57948)
Signed-off-by: Sergio Figueras <sergio@yourecm.com>
sfigs committed
Sep 21, 2026 at 11:55 UTC
21aa17c1289f9c376c941b5a5e3d140590d4cae1
1 file changed
+3
-6
vllm/entrypoints/launchers/run_batch.py
+3
-6
@@ -53,8 +53,7 @@ from vllm.entrypoints.serve.engine.protocol import (
53
)
54
from vllm.entrypoints.speech_to_text.transcription.protocol import (
55
TranscriptionRequest,
56
- TranscriptionResponse,
57
- TranscriptionResponseVerbose,
56
+ TranscriptionResponseVariant,
57
)
58
from vllm.entrypoints.speech_to_text.translation.protocol import (
59
TranslationRequest,
@@ -203,8 +202,7 @@ AllResponse: TypeAlias = (
202
| EmbeddingResponse
203
| ScoreResponse
204
| RerankResponse
206
- | TranscriptionResponse
207
- | TranscriptionResponseVerbose
205
+ | TranscriptionResponseVariant
206
| TranslationResponse
207
| TranslationResponseVerbose
208
)
@@ -660,8 +658,7 @@ def make_transcription_wrapper(
658
async def transcription_wrapper(
659
batch_request_body: (BatchTranscriptionRequest | BatchTranslationRequest),
660
) -> (
663
- TranscriptionResponse
664
- | TranscriptionResponseVerbose
661
+ TranscriptionResponseVariant
662
| TranslationResponse
663
| TranslationResponseVerbose
664
| ErrorResponse