From 6cd39b8b42fd49a754ff03011d7e765d280f9282 Mon Sep 17 00:00:00 2001 From: Chad Bailey Date: Wed, 18 Mar 2026 23:04:22 +0000 Subject: [PATCH] updates --- src/pipecat/services/google/gemini_live/llm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pipecat/services/google/gemini_live/llm.py b/src/pipecat/services/google/gemini_live/llm.py index 121abe468..bcc45f433 100644 --- a/src/pipecat/services/google/gemini_live/llm.py +++ b/src/pipecat/services/google/gemini_live/llm.py @@ -1507,7 +1507,10 @@ class GeminiLiveLLMService(LLMService): await self.start_ttfb_metrics() try: - await self._session.send_client_content(turns=messages, turn_complete=False) + await self._session.send_client_content( + turns=messages, turn_complete=self._inference_on_context_initialization + ) + # Gemini 3.1 wants turn_complete=True, but also won't run inference without a realtime input if self._inference_on_context_initialization: await self._session.send_realtime_input(text=" ") except Exception as e: