From 246f9f3325b4e51395f424d2a91e4f8e998df17c Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Thu, 4 Sep 2025 16:47:08 -0400 Subject: [PATCH] Raise an error when attempting to use Gemini Multimodal Live with universal `LLMContext`. This is exactly the same error we already have for the other s2s models, AWS Nova Sonic and OpenAI Realtime, it was just missing from this service. --- src/pipecat/services/gemini_multimodal_live/gemini.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index da14c3275..106f668e9 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -33,6 +33,7 @@ from pipecat.frames.frames import ( InputAudioRawFrame, InputImageRawFrame, InputTextRawFrame, + LLMContextFrame, LLMFullResponseEndFrame, LLMFullResponseStartFrame, LLMMessagesAppendFrame, @@ -738,6 +739,10 @@ class GeminiMultimodalLiveLLMService(LLMService): # Support just one tool call per context frame for now tool_result_message = context.messages[-1] await self._tool_result(tool_result_message) + elif isinstance(frame, LLMContextFrame): + raise NotImplementedError( + "Universal LLMContext is not yet supported for Gemini Multimodal Live." + ) elif isinstance(frame, InputTextRawFrame): await self._send_user_text(frame.text) await self.push_frame(frame, direction)