Merge pull request #2828 from pipecat-ai/aleix/gemini-live-gemini-to-llm

google: rename google.gemini_live.gemini to google.gemini_live.llm
This commit is contained in:
Aleix Conchillo Flaqué
2025-10-10 06:42:51 -07:00
committed by GitHub
16 changed files with 22 additions and 29 deletions

View File

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

View File

@@ -9,6 +9,7 @@ import sys
from pipecat.services import DeprecatedModuleProxy
from .frames import *
from .gemini_live import *
from .image import *
from .llm import *
from .llm_openai import *

View File

@@ -1,3 +1,3 @@
from .file_api import GeminiFileAPI
from .gemini import GeminiLiveLLMService
from .vertex import GeminiLiveVertexLLMService
from .llm import GeminiLiveLLMService
from .llm_vertex import GeminiLiveVertexLLMService

View File

@@ -12,13 +12,12 @@ streaming responses, and tool usage.
"""
import json
import os
from typing import List, Optional, Union
from loguru import logger
from pipecat.adapters.schemas.tools_schema import ToolsSchema
from pipecat.services.google.gemini_live.gemini import (
from pipecat.services.google.gemini_live.llm import (
GeminiLiveLLMService,
HttpOptions,
InputParams,
@@ -33,9 +32,7 @@ try:
except ModuleNotFoundError as e:
logger.error(f"Exception: {e}")
logger.error(
"In order to use Google Vertex AI, you need to `pip install pipecat-ai[google]`. Also, set up your Google credentials properly."
)
logger.error("In order to use Google Vertex AI, you need to `pip install pipecat-ai[google]`.")
raise Exception(f"Missing module: {e}")