From e21180b9625791e60c899460d47d0628490e8305 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Fri, 8 May 2026 16:27:37 -0400 Subject: [PATCH] refactor(gemini-live): use inherited LLMService._function_is_async The same registry-lookup helper was hoisted to LLMService in #4447, so drop the local duplicate. Behavior unchanged. --- src/pipecat/services/google/gemini_live/llm.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pipecat/services/google/gemini_live/llm.py b/src/pipecat/services/google/gemini_live/llm.py index 8330f9137..7194127b1 100644 --- a/src/pipecat/services/google/gemini_live/llm.py +++ b/src/pipecat/services/google/gemini_live/llm.py @@ -383,18 +383,6 @@ class GeminiLiveLLMService(LLMService[GeminiLLMAdapter]): """ return not self._is_gemini_3 - def _function_is_async(self, name: str) -> bool: - """Whether the named function was registered with cancel_on_interruption=False. - - Mirrors the lookup pattern in ``LLMService.run_function_calls``: - a name-specific registry entry takes precedence; if there isn't - one, fall back to the ``None``-keyed catch-all entry. - """ - item = self._functions.get(name) - if item is None: - item = self._functions.get(None) - return item is not None and not item.cancel_on_interruption - def __init__( self, *,