@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 1c3b22058f
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 8, 17:45 UTC

[Misc] Add backward-compatible import aliases for renamed translations module (#34015)

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com> Co-authored-by: Cursor <cursoragent@cursor.com>

kourosh hakhamaneshi committed Feb 6, 2026 at 19:01 UTC 1c3b22058f3407c0bf517ef05b72d03a192974b3
5 files changed +69
vllm/entrypoints/openai/translations/__init__.py new
+12
@@ -0,0 +1,12 @@
1 +# SPDX-License-Identifier: Apache-2.0
2 +# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 +
4 +import warnings
5 +
6 +warnings.warn(
7 + "The 'vllm.entrypoints.openai.translations' module has been renamed to "
8 + "'vllm.entrypoints.openai.speech_to_text'. Please update your imports. "
9 + "This backward-compatible alias will be removed in version 0.17+.",
10 + DeprecationWarning,
11 + stacklevel=2,
12 +)
vllm/entrypoints/openai/translations/api_router.py new
+14
@@ -0,0 +1,14 @@
1 +# SPDX-License-Identifier: Apache-2.0
2 +# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 +
4 +import warnings
5 +
6 +warnings.warn(
7 + "'vllm.entrypoints.openai.translations.api_router' has been moved to "
8 + "'vllm.entrypoints.openai.speech_to_text.api_router'. Please update your "
9 + "imports. This backward-compatible alias will be removed in version 0.17+.",
10 + DeprecationWarning,
11 + stacklevel=2,
12 +)
13 +
14 +from vllm.entrypoints.openai.speech_to_text.api_router import * # noqa: F401,F403,E402
vllm/entrypoints/openai/translations/protocol.py new
+14
@@ -0,0 +1,14 @@
1 +# SPDX-License-Identifier: Apache-2.0
2 +# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 +
4 +import warnings
5 +
6 +warnings.warn(
7 + "'vllm.entrypoints.openai.translations.protocol' has been moved to "
8 + "'vllm.entrypoints.openai.speech_to_text.protocol'. Please update your "
9 + "imports. This backward-compatible alias will be removed in version 0.17+.",
10 + DeprecationWarning,
11 + stacklevel=2,
12 +)
13 +
14 +from vllm.entrypoints.openai.speech_to_text.protocol import * # noqa: F401,F403,E402
vllm/entrypoints/openai/translations/serving.py new
+14
@@ -0,0 +1,14 @@
1 +# SPDX-License-Identifier: Apache-2.0
2 +# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 +
4 +import warnings
5 +
6 +warnings.warn(
7 + "'vllm.entrypoints.openai.translations.serving' has been moved to "
8 + "'vllm.entrypoints.openai.speech_to_text.serving'. Please update your "
9 + "imports. This backward-compatible alias will be removed in version 0.17+.",
10 + DeprecationWarning,
11 + stacklevel=2,
12 +)
13 +
14 +from vllm.entrypoints.openai.speech_to_text.serving import * # noqa: F401,F403,E402
vllm/entrypoints/openai/translations/speech_to_text.py new
+15
@@ -0,0 +1,15 @@
1 +# SPDX-License-Identifier: Apache-2.0
2 +# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 +
4 +import warnings
5 +
6 +warnings.warn(
7 + "'vllm.entrypoints.openai.translations.speech_to_text' has been moved to "
8 + "'vllm.entrypoints.openai.speech_to_text.speech_to_text'. Please update "
9 + "your imports. This backward-compatible alias will be removed in version "
10 + "0.17+.",
11 + DeprecationWarning,
12 + stacklevel=2,
13 +)
14 +
15 +from vllm.entrypoints.openai.speech_to_text.speech_to_text import * # noqa: F401,F403,E402