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:
@@ -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")
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user