livekit-plugins-google 1.2.15__tar.gz → 1.2.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of livekit-plugins-google might be problematic. Click here for more details.
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/PKG-INFO +3 -3
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/llm.py +4 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/realtime/realtime_api.py +5 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/version.py +1 -1
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/pyproject.toml +2 -2
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/.gitignore +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/README.md +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/__init__.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/beta/__init__.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/beta/gemini_tts.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/log.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/models.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/py.typed +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/realtime/__init__.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/realtime/api_proto.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/stt.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/tools.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/tts.py +0 -0
- {livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/utils.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-google
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.16
|
|
4
4
|
Summary: Agent Framework plugin for services from Google Cloud
|
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
|
6
6
|
Project-URL: Website, https://livekit.io/
|
|
7
7
|
Project-URL: Source, https://github.com/livekit/agents
|
|
8
8
|
Author: LiveKit
|
|
9
9
|
License-Expression: Apache-2.0
|
|
10
|
-
Keywords: audio,livekit,realtime,video,
|
|
10
|
+
Keywords: ai,audio,gemini,google,livekit,realtime,video,voice
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -22,7 +22,7 @@ Requires-Dist: google-auth<3,>=2
|
|
|
22
22
|
Requires-Dist: google-cloud-speech<3,>=2
|
|
23
23
|
Requires-Dist: google-cloud-texttospeech<3,>=2.27
|
|
24
24
|
Requires-Dist: google-genai>=v1.23.0
|
|
25
|
-
Requires-Dist: livekit-agents>=1.2.
|
|
25
|
+
Requires-Dist: livekit-agents>=1.2.16
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
|
|
28
28
|
# Google AI plugin for LiveKit Agents
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/llm.py
RENAMED
|
@@ -136,6 +136,10 @@ class LLM(llm.LLM):
|
|
|
136
136
|
_, gcp_project = default_async( # type: ignore
|
|
137
137
|
scopes=["https://www.googleapis.com/auth/cloud-platform"]
|
|
138
138
|
)
|
|
139
|
+
if not gcp_project or not gcp_location:
|
|
140
|
+
raise ValueError(
|
|
141
|
+
"Project is required for VertexAI via project kwarg or GOOGLE_CLOUD_PROJECT environment variable" # noqa: E501
|
|
142
|
+
)
|
|
139
143
|
gemini_api_key = None # VertexAI does not require an API key
|
|
140
144
|
|
|
141
145
|
else:
|
|
@@ -10,6 +10,7 @@ from collections.abc import Iterator
|
|
|
10
10
|
from dataclasses import dataclass, field
|
|
11
11
|
from typing import Literal
|
|
12
12
|
|
|
13
|
+
from google.auth._default_async import default_async
|
|
13
14
|
from google.genai import Client as GenAIClient, types
|
|
14
15
|
from google.genai.live import AsyncSession
|
|
15
16
|
from livekit import rtc
|
|
@@ -235,6 +236,10 @@ class RealtimeModel(llm.RealtimeModel):
|
|
|
235
236
|
)
|
|
236
237
|
|
|
237
238
|
if use_vertexai:
|
|
239
|
+
if not gcp_project:
|
|
240
|
+
_, gcp_project = default_async( # type: ignore
|
|
241
|
+
scopes=["https://www.googleapis.com/auth/cloud-platform"]
|
|
242
|
+
)
|
|
238
243
|
if not gcp_project or not gcp_location:
|
|
239
244
|
raise ValueError(
|
|
240
245
|
"Project is required for VertexAI via project kwarg or GOOGLE_CLOUD_PROJECT environment variable" # noqa: E501
|
|
@@ -10,7 +10,7 @@ readme = "README.md"
|
|
|
10
10
|
license = "Apache-2.0"
|
|
11
11
|
requires-python = ">=3.9.0"
|
|
12
12
|
authors = [{ name = "LiveKit" }]
|
|
13
|
-
keywords = ["
|
|
13
|
+
keywords = ["voice", "ai", "realtime", "audio", "video", "livekit", "google", "gemini"]
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Intended Audience :: Developers",
|
|
16
16
|
"License :: OSI Approved :: Apache Software License",
|
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
"google-cloud-speech >= 2, < 3",
|
|
28
28
|
"google-cloud-texttospeech >= 2.27, < 3",
|
|
29
29
|
"google-genai >= v1.23.0",
|
|
30
|
-
"livekit-agents>=1.2.
|
|
30
|
+
"livekit-agents>=1.2.16",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/log.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/models.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/stt.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/tools.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/tts.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.15 → livekit_plugins_google-1.2.16}/livekit/plugins/google/utils.py
RENAMED
|
File without changes
|