google: move gemini_live inside google service
This commit is contained in:
@@ -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]`.")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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,
|
||||
Reference in New Issue
Block a user