From 2af3b6329d2038fa92d65a1ac2ec8c635331a1c9 Mon Sep 17 00:00:00 2001 From: Pete Date: Tue, 29 Jul 2025 17:48:11 -0400 Subject: [PATCH] Ruff format debug --- src/pipecat/frames/frames.py | 6 +++--- src/pipecat/services/gemini_multimodal_live/gemini.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index b92196a31..4815dae86 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -1074,12 +1074,12 @@ class InputImageRawFrame(SystemFrame, ImageRawFrame): return f"{self.name}(pts: {pts}, source: {self.transport_source}, size: {self.size}, format: {self.format})" -@dataclass +@dataclass class InputTextRawFrame(SystemFrame, TextFrame): """Raw text input frame from transport. - + Text input usually coming from user typing or programmatic text injection - that should be sent to LLM services as input, similar to how InputAudioRawFrame + that should be sent to LLM services as input, similar to how InputAudioRawFrame and InputImageRawFrame represent user audio and video input. """ diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index ea71cd10d..b7adb8c49 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -970,15 +970,15 @@ class GeminiMultimodalLiveLLMService(LLMService): async def _send_user_text(self, text: str): """Send user text via Gemini Live API's realtime input stream. - + This method sends text through the realtimeInput stream (via TextInputMessage) rather than the clientContent stream. This ensures text input is synchronized with audio and video inputs, preventing temporal misalignment that can occur when different modalities are processed through separate API pathways. - + After sending the text, we signal turn completion to trigger a model response for text-only interactions. - + Args: text: The text to send as user input. """