[Misc] Rename translations to speech_to_text for OAI serving component (#33904)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2026-02-05 20:16:52 +01:00
committed by GitHub
parent 1887acca9e
commit 20f5d185a6
7 changed files with 11 additions and 11 deletions

View File

@@ -190,11 +190,11 @@ def build_app(args: Namespace, supported_tasks: tuple["SupportedTask", ...]) ->
register_generate_api_routers(app)
if "transcription" in supported_tasks:
from vllm.entrypoints.openai.translations.api_router import (
attach_router as register_translations_api_router,
from vllm.entrypoints.openai.speech_to_text.api_router import (
attach_router as register_speech_to_text_api_router,
)
register_translations_api_router(app)
register_speech_to_text_api_router(app)
if "realtime" in supported_tasks:
from vllm.entrypoints.openai.realtime.api_router import (
@@ -318,7 +318,7 @@ async def init_app_state(
)
if "transcription" in supported_tasks:
from vllm.entrypoints.openai.translations.api_router import (
from vllm.entrypoints.openai.speech_to_text.api_router import (
init_transcription_state,
)