Fix deprecation messages pointing users to the new import paths for Gemini Live
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user