deprecate openai_realtime
This commit is contained in:
27
src/pipecat/services/openai_realtime/__init__.py
Normal file
27
src/pipecat/services/openai_realtime/__init__.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.azure.realtime.llm import AzureRealtimeLLMService
|
||||||
|
from pipecat.services.openai.realtime.events import (
|
||||||
|
InputAudioNoiseReduction,
|
||||||
|
InputAudioTranscription,
|
||||||
|
SemanticTurnDetection,
|
||||||
|
SessionProperties,
|
||||||
|
TurnDetection,
|
||||||
|
)
|
||||||
|
from pipecat.services.openai.realtime.llm import OpenAIRealtimeLLMService
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.openai_realtime are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.openai.realtime instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
21
src/pipecat/services/openai_realtime/azure.py
Normal file
21
src/pipecat/services/openai_realtime/azure.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Azure OpenAI Realtime LLM service implementation."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.azure.realtime.llm import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.openai_realtime.azure are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.azure.realtime.llm instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
21
src/pipecat/services/openai_realtime/context.py
Normal file
21
src/pipecat/services/openai_realtime/context.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""OpenAI Realtime LLM context and aggregator implementations."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.openai.realtime.context import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.openai_realtime.context are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.openai.realtime.context instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
21
src/pipecat/services/openai_realtime/events.py
Normal file
21
src/pipecat/services/openai_realtime/events.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Event models and data structures for OpenAI Realtime API communication."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.openai.realtime.events import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.openai_realtime.events are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.openai.realtime.events instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
21
src/pipecat/services/openai_realtime/frames.py
Normal file
21
src/pipecat/services/openai_realtime/frames.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Custom frame types for OpenAI Realtime API integration."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.openai.realtime.frames import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.openai_realtime.frames are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.openai.realtime.frames instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user