From ac1582c906a7166d719e641410c84b4c446e6c6a Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Wed, 8 Oct 2025 15:13:20 -0400 Subject: [PATCH] Let users directly use `google-genai` types rather than aliased re-exported types --- .../services/gemini_multimodal_live/gemini.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/pipecat/services/gemini_multimodal_live/gemini.py b/src/pipecat/services/gemini_multimodal_live/gemini.py index 08e6a1875..ff804a547 100644 --- a/src/pipecat/services/gemini_multimodal_live/gemini.py +++ b/src/pipecat/services/gemini_multimodal_live/gemini.py @@ -90,23 +90,19 @@ try: FunctionResponse, GenerationConfig, GroundingMetadata, + HttpOptions, LiveConnectConfig, LiveServerMessage, Modality, Part, + ProactivityConfig, RealtimeInputConfig, SlidingWindow, SpeechConfig, StartSensitivity, + ThinkingConfig, VoiceConfig, ) - from google.genai.types import ( - HttpOptions as _HttpOptions, - ) - from google.genai.types import ProactivityConfig as _ProactivityConfig - from google.genai.types import ( - ThinkingConfig as _ThinkingConfig, - ) except ModuleNotFoundError as e: logger.error(f"Exception: {e}") logger.error("In order to use Google AI, you need to `pip install pipecat-ai[google]`.") @@ -460,11 +456,6 @@ class ContextWindowCompressionParams(BaseModel): ) # None = use default (80% of context window) -ThinkingConfig = _ThinkingConfig -HttpOptions = _HttpOptions -ProactivityConfig = _ProactivityConfig - - class InputParams(BaseModel): """Input parameters for Gemini Multimodal Live generation.