google: move gemini_live inside google service

This commit is contained in:
Aleix Conchillo Flaqué
2025-10-09 16:02:52 -07:00
parent 046b76df60
commit aeace9b9be
18 changed files with 35 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ import warnings
from loguru import logger
try:
from pipecat.services.gemini_live.file_api import GeminiFileAPI as _GeminiFileAPI
from pipecat.services.google.gemini_live.file_api import GeminiFileAPI as _GeminiFileAPI
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]`.")

View File

@@ -18,10 +18,10 @@ voice transcription, streaming responses, and tool usage.
import warnings
from pipecat.services.gemini_live.gemini import (
from pipecat.services.google.gemini_live.gemini import (
ContextWindowCompressionParams as _ContextWindowCompressionParams,
)
from pipecat.services.gemini_live.gemini import (
from pipecat.services.google.gemini_live.gemini import (
GeminiLiveAssistantContextAggregator,
GeminiLiveContext,
GeminiLiveContextAggregatorPair,
@@ -29,9 +29,11 @@ from pipecat.services.gemini_live.gemini import (
GeminiLiveUserContextAggregator,
GeminiModalities,
)
from pipecat.services.gemini_live.gemini import GeminiMediaResolution as _GeminiMediaResolution
from pipecat.services.gemini_live.gemini import GeminiVADParams as _GeminiVADParams
from pipecat.services.gemini_live.gemini import InputParams as _InputParams
from pipecat.services.google.gemini_live.gemini import (
GeminiMediaResolution as _GeminiMediaResolution,
)
from pipecat.services.google.gemini_live.gemini import GeminiVADParams as _GeminiVADParams
from pipecat.services.google.gemini_live.gemini import InputParams as _InputParams
with warnings.catch_warnings():
warnings.simplefilter("always")

View File

@@ -18,7 +18,7 @@ from typing import List, Optional, Union
from loguru import logger
from pipecat.adapters.schemas.tools_schema import ToolsSchema
from pipecat.services.gemini_live.gemini import (
from pipecat.services.google.gemini_live.gemini import (
GeminiLiveLLMService,
HttpOptions,
InputParams,