From 7b05c9283b2f4f0db086daa5a373f794df527319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Thu, 9 Oct 2025 19:06:09 -0700 Subject: [PATCH] move openai.realtime.azure to azure.realtime.llm --- examples/foundational/19a-azure-realtime.py | 7 ++++--- src/pipecat/services/azure/realtime/__init__.py | 0 .../{openai/realtime/azure.py => azure/realtime/llm.py} | 6 ++---- 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 src/pipecat/services/azure/realtime/__init__.py rename src/pipecat/services/{openai/realtime/azure.py => azure/realtime/llm.py} (91%) diff --git a/examples/foundational/19a-azure-realtime.py b/examples/foundational/19a-azure-realtime.py index a39826b81..c4b0fc02a 100644 --- a/examples/foundational/19a-azure-realtime.py +++ b/examples/foundational/19a-azure-realtime.py @@ -21,13 +21,14 @@ from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport +from pipecat.services.azure.realtime.llm import AzureRealtimeLLMService from pipecat.services.llm_service import FunctionCallParams -from pipecat.services.openai_realtime import ( - AzureRealtimeLLMService, +from pipecat.services.openai.realtime.events import ( + AudioConfiguration, + AudioInput, InputAudioTranscription, SessionProperties, ) -from pipecat.services.openai_realtime.events import AudioConfiguration, AudioInput from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams from pipecat.transports.websocket.fastapi import FastAPIWebsocketParams diff --git a/src/pipecat/services/azure/realtime/__init__.py b/src/pipecat/services/azure/realtime/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/pipecat/services/openai/realtime/azure.py b/src/pipecat/services/azure/realtime/llm.py similarity index 91% rename from src/pipecat/services/openai/realtime/azure.py rename to src/pipecat/services/azure/realtime/llm.py index aed53b94c..fb420e10b 100644 --- a/src/pipecat/services/openai/realtime/azure.py +++ b/src/pipecat/services/azure/realtime/llm.py @@ -8,15 +8,13 @@ from loguru import logger -from .openai import OpenAIRealtimeLLMService +from pipecat.services.openai.realtime.llm import OpenAIRealtimeLLMService try: from websockets.asyncio.client import connect as websocket_connect except ModuleNotFoundError as e: logger.error(f"Exception: {e}") - logger.error( - "In order to use OpenAI, you need to `pip install pipecat-ai[openai]`. Also, set `OPENAI_API_KEY` environment variable." - ) + logger.error("In order to use Azure Realtime, you need to `pip install pipecat-ai[openai]`.") raise Exception(f"Missing module: {e}")