Merge pull request #2829 from pipecat-ai/pk/fix-gemini-live-deprecation-messages

Fix deprecation messages pointing users to the new import paths for G…
This commit is contained in:
kompfner
2025-10-10 10:42:15 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ this API can be referenced in Gemini generative model calls.
.. deprecated:: 0.0.90
Importing GeminiFileAPI from this module is deprecated.
Import it from pipecat.services.gemini_live.file_api instead.
Import it from pipecat.services.google.gemini_live.file_api instead.
"""
import warnings
@@ -32,7 +32,7 @@ except ModuleNotFoundError as e:
warnings.warn(
"Importing GeminiFileAPI from "
"pipecat.services.gemini_multimodal_live.file_api is deprecated. "
"Please import it from pipecat.services.gemini_live.file_api instead.",
"Please import it from pipecat.services.google.gemini_live.file_api instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -12,7 +12,7 @@ voice transcription, streaming responses, and tool usage.
.. deprecated:: 0.0.90
This module is deprecated. Please use the equivalent types from
pipecat.services.gemini_live.gemini instead. Note that the new type names
pipecat.services.google.gemini_live.llm instead. Note that the new type names
do not include 'Multimodal'.
"""
@@ -38,7 +38,7 @@ with warnings.catch_warnings():
warnings.warn(
"Types in pipecat.services.gemini_multimodal_live.gemini are deprecated. "
"Please use the equivalent types from "
"pipecat.services.gemini_live.gemini instead. Note that the new type "
"pipecat.services.google.gemini_live.llm instead. Note that the new type "
"names do not include 'Multimodal' "
"(e.g. `GeminiMultimodalLiveLLMService` is now `GeminiLiveLLMService`).",
DeprecationWarning,