From 0df421de9cebb64beea59b02c94cd319ef10c41e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:53:13 -0700 Subject: [PATCH 1/9] Move google/llm_vertex.py to google/vertex/llm.py --- src/pipecat/services/google/vertex/__init__.py | 5 +++++ src/pipecat/services/google/{llm_vertex.py => vertex/llm.py} | 0 2 files changed, 5 insertions(+) create mode 100644 src/pipecat/services/google/vertex/__init__.py rename src/pipecat/services/google/{llm_vertex.py => vertex/llm.py} (100%) diff --git a/src/pipecat/services/google/vertex/__init__.py b/src/pipecat/services/google/vertex/__init__.py new file mode 100644 index 000000000..c4d243b97 --- /dev/null +++ b/src/pipecat/services/google/vertex/__init__.py @@ -0,0 +1,5 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# diff --git a/src/pipecat/services/google/llm_vertex.py b/src/pipecat/services/google/vertex/llm.py similarity index 100% rename from src/pipecat/services/google/llm_vertex.py rename to src/pipecat/services/google/vertex/llm.py From b159d02b0cc3d690bc375961e7677bbea22e81e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:54:05 -0700 Subject: [PATCH 2/9] Add deprecation stub for google/llm_vertex.py --- src/pipecat/services/google/__init__.py | 4 ++-- src/pipecat/services/google/llm_vertex.py | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/pipecat/services/google/llm_vertex.py diff --git a/src/pipecat/services/google/__init__.py b/src/pipecat/services/google/__init__.py index 032cf0eb8..009f71f08 100644 --- a/src/pipecat/services/google/__init__.py +++ b/src/pipecat/services/google/__init__.py @@ -13,11 +13,11 @@ from .gemini_live import * from .image import * from .llm import * from .llm_openai import * -from .llm_vertex import * from .rtvi import * from .stt import * from .tts import * +from .vertex import * sys.modules[__name__] = DeprecatedModuleProxy( - globals(), "google", "google.[frames,image,llm,llm_openai,llm_vertex,rtvi,stt,tts]" + globals(), "google", "google.[frames,image,llm,openai,vertex,rtvi,stt,tts]" ) diff --git a/src/pipecat/services/google/llm_vertex.py b/src/pipecat/services/google/llm_vertex.py new file mode 100644 index 000000000..54d338ad7 --- /dev/null +++ b/src/pipecat/services/google/llm_vertex.py @@ -0,0 +1,18 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + +"""Deprecated: use ``pipecat.services.google.vertex.llm`` instead.""" + +import warnings + +warnings.warn( + "Module `pipecat.services.google.llm_vertex` is deprecated, " + "use `pipecat.services.google.vertex.llm` instead.", + DeprecationWarning, + stacklevel=2, +) + +from pipecat.services.google.vertex.llm import * # noqa: E402, F401, F403 From 8ea006739c2f1cd52b1614ac16354420a7d55e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:54:37 -0700 Subject: [PATCH 3/9] Move google/llm_openai.py to google/openai/llm.py --- src/pipecat/services/google/openai/__init__.py | 5 +++++ src/pipecat/services/google/{llm_openai.py => openai/llm.py} | 0 2 files changed, 5 insertions(+) create mode 100644 src/pipecat/services/google/openai/__init__.py rename src/pipecat/services/google/{llm_openai.py => openai/llm.py} (100%) diff --git a/src/pipecat/services/google/openai/__init__.py b/src/pipecat/services/google/openai/__init__.py new file mode 100644 index 000000000..c4d243b97 --- /dev/null +++ b/src/pipecat/services/google/openai/__init__.py @@ -0,0 +1,5 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# diff --git a/src/pipecat/services/google/llm_openai.py b/src/pipecat/services/google/openai/llm.py similarity index 100% rename from src/pipecat/services/google/llm_openai.py rename to src/pipecat/services/google/openai/llm.py From 4fa3890cec1706701da12651740d753d5f8a7af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:55:16 -0700 Subject: [PATCH 4/9] Add deprecation stub for google/llm_openai.py --- src/pipecat/services/google/__init__.py | 2 +- src/pipecat/services/google/llm_openai.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/pipecat/services/google/llm_openai.py diff --git a/src/pipecat/services/google/__init__.py b/src/pipecat/services/google/__init__.py index 009f71f08..32b12e367 100644 --- a/src/pipecat/services/google/__init__.py +++ b/src/pipecat/services/google/__init__.py @@ -12,7 +12,7 @@ from .frames import * from .gemini_live import * from .image import * from .llm import * -from .llm_openai import * +from .openai import * from .rtvi import * from .stt import * from .tts import * diff --git a/src/pipecat/services/google/llm_openai.py b/src/pipecat/services/google/llm_openai.py new file mode 100644 index 000000000..f9d182e78 --- /dev/null +++ b/src/pipecat/services/google/llm_openai.py @@ -0,0 +1,18 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + +"""Deprecated: use ``pipecat.services.google.openai.llm`` instead.""" + +import warnings + +warnings.warn( + "Module `pipecat.services.google.llm_openai` is deprecated, " + "use `pipecat.services.google.openai.llm` instead.", + DeprecationWarning, + stacklevel=2, +) + +from pipecat.services.google.openai.llm import * # noqa: E402, F401, F403 From b23652caa68c757adbd0a8ce2e35d62a6813424a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:58:04 -0700 Subject: [PATCH 5/9] Update imports to use new google.vertex and google.openai paths --- .../14o-function-calling-gemini-openai-format.py | 2 +- .../foundational/14p-function-calling-gemini-vertex-ai.py | 2 +- .../foundational/55zk-update-settings-google-vertex-llm.py | 2 +- src/pipecat/services/google/google.py | 6 +++--- tests/test_google_llm_openai.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/foundational/14o-function-calling-gemini-openai-format.py b/examples/foundational/14o-function-calling-gemini-openai-format.py index 416e602bf..8ab53d9cf 100644 --- a/examples/foundational/14o-function-calling-gemini-openai-format.py +++ b/examples/foundational/14o-function-calling-gemini-openai-format.py @@ -26,7 +26,7 @@ from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.elevenlabs.tts import ElevenLabsTTSService -from pipecat.services.google.llm_openai import GoogleLLMOpenAIBetaService +from pipecat.services.google.openai.llm import GoogleLLMOpenAIBetaService from pipecat.services.llm_service import FunctionCallParams from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams diff --git a/examples/foundational/14p-function-calling-gemini-vertex-ai.py b/examples/foundational/14p-function-calling-gemini-vertex-ai.py index 1f33efacf..c6259b992 100644 --- a/examples/foundational/14p-function-calling-gemini-vertex-ai.py +++ b/examples/foundational/14p-function-calling-gemini-vertex-ai.py @@ -26,7 +26,7 @@ from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.elevenlabs.tts import ElevenLabsTTSService -from pipecat.services.google.llm_vertex import GoogleVertexLLMService +from pipecat.services.google.vertex.llm import GoogleVertexLLMService from pipecat.services.llm_service import FunctionCallParams from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams diff --git a/examples/foundational/55zk-update-settings-google-vertex-llm.py b/examples/foundational/55zk-update-settings-google-vertex-llm.py index 6b2babb7f..7f7a34cba 100644 --- a/examples/foundational/55zk-update-settings-google-vertex-llm.py +++ b/examples/foundational/55zk-update-settings-google-vertex-llm.py @@ -24,7 +24,7 @@ from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.deepgram.stt import DeepgramSTTService -from pipecat.services.google.llm_vertex import GoogleVertexLLMService +from pipecat.services.google.vertex.llm import GoogleVertexLLMService from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams from pipecat.transports.websocket.fastapi import FastAPIWebsocketParams diff --git a/src/pipecat/services/google/google.py b/src/pipecat/services/google/google.py index 3d1814cf0..b2fc88b23 100644 --- a/src/pipecat/services/google/google.py +++ b/src/pipecat/services/google/google.py @@ -13,12 +13,12 @@ from pipecat.services import DeprecatedModuleProxy from .frames import * from .image import * from .llm import * -from .llm_openai import * -from .llm_vertex import * +from .openai import * from .rtvi import * from .stt import * from .tts import * +from .vertex import * sys.modules[__name__] = DeprecatedModuleProxy( - globals(), "google", "google.[frames,image,llm,llm_openai,llm_vertex,rtvi,stt,tts]" + globals(), "google", "google.[frames,image,llm,openai,vertex,rtvi,stt,tts]" ) diff --git a/tests/test_google_llm_openai.py b/tests/test_google_llm_openai.py index 2940bf7d7..5e6cee6f8 100644 --- a/tests/test_google_llm_openai.py +++ b/tests/test_google_llm_openai.py @@ -15,7 +15,7 @@ import pytest from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext try: - from pipecat.services.google.llm_openai import GoogleLLMOpenAIBetaService + from pipecat.services.google.openai.llm import GoogleLLMOpenAIBetaService google_available = True except Exception: From d086b9f138e460523e1bddbb2c6b1ccbcc57b61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 12:59:36 -0700 Subject: [PATCH 6/9] Move google/gemini_live/llm_vertex.py to google/gemini_live/vertex/llm.py --- src/pipecat/services/google/gemini_live/vertex/__init__.py | 5 +++++ .../google/gemini_live/{llm_vertex.py => vertex/llm.py} | 0 2 files changed, 5 insertions(+) create mode 100644 src/pipecat/services/google/gemini_live/vertex/__init__.py rename src/pipecat/services/google/gemini_live/{llm_vertex.py => vertex/llm.py} (100%) diff --git a/src/pipecat/services/google/gemini_live/vertex/__init__.py b/src/pipecat/services/google/gemini_live/vertex/__init__.py new file mode 100644 index 000000000..c4d243b97 --- /dev/null +++ b/src/pipecat/services/google/gemini_live/vertex/__init__.py @@ -0,0 +1,5 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# diff --git a/src/pipecat/services/google/gemini_live/llm_vertex.py b/src/pipecat/services/google/gemini_live/vertex/llm.py similarity index 100% rename from src/pipecat/services/google/gemini_live/llm_vertex.py rename to src/pipecat/services/google/gemini_live/vertex/llm.py From ea09586db633a4b8c815d2f3ac9458a937562c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 13:00:02 -0700 Subject: [PATCH 7/9] Add deprecation stub for google/gemini_live/llm_vertex.py --- .../services/google/gemini_live/__init__.py | 2 +- .../services/google/gemini_live/llm_vertex.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/pipecat/services/google/gemini_live/llm_vertex.py diff --git a/src/pipecat/services/google/gemini_live/__init__.py b/src/pipecat/services/google/gemini_live/__init__.py index f4bfbb5c8..4afeb99ce 100644 --- a/src/pipecat/services/google/gemini_live/__init__.py +++ b/src/pipecat/services/google/gemini_live/__init__.py @@ -1,6 +1,6 @@ from .file_api import GeminiFileAPI from .llm import GeminiLiveLLMService -from .llm_vertex import GeminiLiveVertexLLMService +from .vertex.llm import GeminiLiveVertexLLMService __all__ = [ "GeminiFileAPI", diff --git a/src/pipecat/services/google/gemini_live/llm_vertex.py b/src/pipecat/services/google/gemini_live/llm_vertex.py new file mode 100644 index 000000000..038d72e57 --- /dev/null +++ b/src/pipecat/services/google/gemini_live/llm_vertex.py @@ -0,0 +1,18 @@ +# +# Copyright (c) 2024-2026, Daily +# +# SPDX-License-Identifier: BSD 2-Clause License +# + +"""Deprecated: use ``pipecat.services.google.gemini_live.vertex.llm`` instead.""" + +import warnings + +warnings.warn( + "Module `pipecat.services.google.gemini_live.llm_vertex` is deprecated, " + "use `pipecat.services.google.gemini_live.vertex.llm` instead.", + DeprecationWarning, + stacklevel=2, +) + +from pipecat.services.google.gemini_live.vertex.llm import * # noqa: E402, F401, F403 From 7be2c43e1d56e5400637b4a7526ffc95d367c290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 13:00:31 -0700 Subject: [PATCH 8/9] Update imports to use new google.gemini_live.vertex path --- .../foundational/26h-gemini-live-vertex-function-calling.py | 2 +- .../foundational/55zm-update-settings-gemini-live-vertex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/foundational/26h-gemini-live-vertex-function-calling.py b/examples/foundational/26h-gemini-live-vertex-function-calling.py index 18e417f22..7dd894fd1 100644 --- a/examples/foundational/26h-gemini-live-vertex-function-calling.py +++ b/examples/foundational/26h-gemini-live-vertex-function-calling.py @@ -26,7 +26,7 @@ from pipecat.processors.aggregators.llm_response_universal import ( ) from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport -from pipecat.services.google.gemini_live.llm_vertex import GeminiLiveVertexLLMService +from pipecat.services.google.gemini_live.vertex.llm import GeminiLiveVertexLLMService from pipecat.services.llm_service import FunctionCallParams from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams diff --git a/examples/foundational/55zm-update-settings-gemini-live-vertex.py b/examples/foundational/55zm-update-settings-gemini-live-vertex.py index f69b94557..8ff18e1eb 100644 --- a/examples/foundational/55zm-update-settings-gemini-live-vertex.py +++ b/examples/foundational/55zm-update-settings-gemini-live-vertex.py @@ -19,7 +19,7 @@ from pipecat.processors.aggregators.llm_context import LLMContext from pipecat.processors.aggregators.llm_response_universal import LLMContextAggregatorPair from pipecat.runner.types import RunnerArguments from pipecat.runner.utils import create_transport -from pipecat.services.google.gemini_live.llm_vertex import GeminiLiveVertexLLMService +from pipecat.services.google.gemini_live.vertex.llm import GeminiLiveVertexLLMService from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams from pipecat.transports.websocket.fastapi import FastAPIWebsocketParams From 23218aaed707903f620d0329aacc69f7b582c167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 10 Mar 2026 13:04:16 -0700 Subject: [PATCH 9/9] Add changelog for #3980 --- changelog/3980.deprecated.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/3980.deprecated.md diff --git a/changelog/3980.deprecated.md b/changelog/3980.deprecated.md new file mode 100644 index 000000000..f69964b62 --- /dev/null +++ b/changelog/3980.deprecated.md @@ -0,0 +1 @@ +- Deprecated `pipecat.services.google.llm_vertex`, `pipecat.services.google.llm_openai`, and `pipecat.services.google.gemini_live.llm_vertex` modules. Use `pipecat.services.google.vertex.llm`, `pipecat.services.google.openai.llm`, and `pipecat.services.google.gemini_live.vertex.llm` instead. The old import paths still work but will emit a `DeprecationWarning`.