Add deprecation shims for moved stt_sagemaker/tts_sagemaker modules
Re-export from the new pipecat.services.deepgram.sagemaker.{stt,tts}
paths so existing imports keep working with a deprecation warning.
This commit is contained in:
18
src/pipecat/services/deepgram/stt_sagemaker.py
Normal file
18
src/pipecat/services/deepgram/stt_sagemaker.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2024-2026, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Deprecated: use ``pipecat.services.deepgram.sagemaker.stt`` instead."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.warn(
|
||||||
|
"Module `pipecat.services.deepgram.stt_sagemaker` is deprecated, "
|
||||||
|
"use `pipecat.services.deepgram.sagemaker.stt` instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
|
|
||||||
|
from pipecat.services.deepgram.sagemaker.stt import * # noqa: E402, F401, F403
|
||||||
18
src/pipecat/services/deepgram/tts_sagemaker.py
Normal file
18
src/pipecat/services/deepgram/tts_sagemaker.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2024-2026, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Deprecated: use ``pipecat.services.deepgram.sagemaker.tts`` instead."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.warn(
|
||||||
|
"Module `pipecat.services.deepgram.tts_sagemaker` is deprecated, "
|
||||||
|
"use `pipecat.services.deepgram.sagemaker.tts` instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
|
|
||||||
|
from pipecat.services.deepgram.sagemaker.tts import * # noqa: E402, F401, F403
|
||||||
Reference in New Issue
Block a user