From 9698b008da9363675b7c07cce49e252ce9e56e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 9 Oct 2025 19:13:25 -0700 Subject: [PATCH] deprecate openai_realtime --- .../services/openai_realtime/__init__.py | 27 +++++++++++++++++++ src/pipecat/services/openai_realtime/azure.py | 21 +++++++++++++++ .../services/openai_realtime/context.py | 21 +++++++++++++++ .../services/openai_realtime/events.py | 21 +++++++++++++++ .../services/openai_realtime/frames.py | 21 +++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 src/pipecat/services/openai_realtime/__init__.py create mode 100644 src/pipecat/services/openai_realtime/azure.py create mode 100644 src/pipecat/services/openai_realtime/context.py create mode 100644 src/pipecat/services/openai_realtime/events.py create mode 100644 src/pipecat/services/openai_realtime/frames.py diff --git a/src/pipecat/services/openai_realtime/__init__.py b/src/pipecat/services/openai_realtime/__init__.py new file mode 100644 index 000000000..f1fbefeda --- /dev/null +++ b/src/pipecat/services/openai_realtime/__init__.py @@ -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, + ) diff --git a/src/pipecat/services/openai_realtime/azure.py b/src/pipecat/services/openai_realtime/azure.py new file mode 100644 index 000000000..dae6ef496 --- /dev/null +++ b/src/pipecat/services/openai_realtime/azure.py @@ -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, + ) diff --git a/src/pipecat/services/openai_realtime/context.py b/src/pipecat/services/openai_realtime/context.py new file mode 100644 index 000000000..58f1cfe75 --- /dev/null +++ b/src/pipecat/services/openai_realtime/context.py @@ -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, + ) diff --git a/src/pipecat/services/openai_realtime/events.py b/src/pipecat/services/openai_realtime/events.py new file mode 100644 index 000000000..53b4b0dff --- /dev/null +++ b/src/pipecat/services/openai_realtime/events.py @@ -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, + ) diff --git a/src/pipecat/services/openai_realtime/frames.py b/src/pipecat/services/openai_realtime/frames.py new file mode 100644 index 000000000..e7e4d7d9f --- /dev/null +++ b/src/pipecat/services/openai_realtime/frames.py @@ -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, + )