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:
@@ -12,7 +12,7 @@ this API can be referenced in Gemini generative model calls.
|
|||||||
|
|
||||||
.. deprecated:: 0.0.90
|
.. deprecated:: 0.0.90
|
||||||
Importing GeminiFileAPI from this module is deprecated.
|
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
|
import warnings
|
||||||
@@ -32,7 +32,7 @@ except ModuleNotFoundError as e:
|
|||||||
warnings.warn(
|
warnings.warn(
|
||||||
"Importing GeminiFileAPI from "
|
"Importing GeminiFileAPI from "
|
||||||
"pipecat.services.gemini_multimodal_live.file_api is deprecated. "
|
"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,
|
DeprecationWarning,
|
||||||
stacklevel=2,
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ voice transcription, streaming responses, and tool usage.
|
|||||||
|
|
||||||
.. deprecated:: 0.0.90
|
.. deprecated:: 0.0.90
|
||||||
This module is deprecated. Please use the equivalent types from
|
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'.
|
do not include 'Multimodal'.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ with warnings.catch_warnings():
|
|||||||
warnings.warn(
|
warnings.warn(
|
||||||
"Types in pipecat.services.gemini_multimodal_live.gemini are deprecated. "
|
"Types in pipecat.services.gemini_multimodal_live.gemini are deprecated. "
|
||||||
"Please use the equivalent types from "
|
"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' "
|
"names do not include 'Multimodal' "
|
||||||
"(e.g. `GeminiMultimodalLiveLLMService` is now `GeminiLiveLLMService`).",
|
"(e.g. `GeminiMultimodalLiveLLMService` is now `GeminiLiveLLMService`).",
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
|
|||||||
Reference in New Issue
Block a user