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.