livekit-plugins-google 1.2.15__py3-none-any.whl → 1.2.16__py3-none-any.whl

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.

@@ -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
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.2.15"
15
+ __version__ = "1.2.16"
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-google
3
- Version: 1.2.15
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,webrtc
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.15
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
@@ -1,5 +1,5 @@
1
1
  livekit/plugins/google/__init__.py,sha256=bYHN04-Ttynj09POAnFP3mln-wrEc1vanUD_YpoWOE4,1434
2
- livekit/plugins/google/llm.py,sha256=u9ZSSkdouPk0018UdiLfgthgTjjLLrXgseX1zrkeg64,18962
2
+ livekit/plugins/google/llm.py,sha256=M2v1sUJVVNtmOOJvuWhHsGygQlCJo73pSyrwVxdjzcA,19198
3
3
  livekit/plugins/google/log.py,sha256=GI3YWN5YzrafnUccljzPRS_ZALkMNk1i21IRnTl2vNA,69
4
4
  livekit/plugins/google/models.py,sha256=jsXHLSCDw-T5dZXeDE2nMT2lr0GooCYO4y4aW7Htps4,2816
5
5
  livekit/plugins/google/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -7,12 +7,12 @@ livekit/plugins/google/stt.py,sha256=fsWoNnpjgLxqY43cx6GbRI-_QLvXmMvD4WczJFjnoOA
7
7
  livekit/plugins/google/tools.py,sha256=tD5HVDHO5JfUF029Cx3axHMJec0Gxalkl7s1FDgxLzI,259
8
8
  livekit/plugins/google/tts.py,sha256=2Ba4HjAc9RWYL3W4Z2586Ir3bYQGdSH2gfxSR7VsyY4,17454
9
9
  livekit/plugins/google/utils.py,sha256=tFByjJ357A1WdCPwBQC4JABR9G5kxX0g7_FuWAIxix4,10002
10
- livekit/plugins/google/version.py,sha256=R5FvTAJuFKBJlKNE37WH1vS6st7RUEFAUNaLi-rjprE,601
10
+ livekit/plugins/google/version.py,sha256=6RxW2Q7KoSNRlDtulIUp5F0_o0atksX-Xpp45NaSCaI,601
11
11
  livekit/plugins/google/beta/__init__.py,sha256=4q5dx-Y6o9peCDziB03Skf5ngH4PTBsZC86ZawWrgnk,271
12
12
  livekit/plugins/google/beta/gemini_tts.py,sha256=SpKorOteQ7GYoGWsxV5YPuGeMexoosmtDXQVz_1ZeLA,8743
13
13
  livekit/plugins/google/realtime/__init__.py,sha256=_fW2NMN22F-hnQ4xAJ_g5lPbR7CvM_xXzSWlUQY-E-U,188
14
14
  livekit/plugins/google/realtime/api_proto.py,sha256=oXKKlf0soMK_MA4LcqP8R5iPgpZvmqjb9KxHJFaBpgk,1261
15
- livekit/plugins/google/realtime/realtime_api.py,sha256=yex6zADpw-H98cH3jaE1eQ5EVoAss2BTNFDmYebdG8A,50864
16
- livekit_plugins_google-1.2.15.dist-info/METADATA,sha256=meK7vebwVijpT8F0tFHGwK3uqyK3fIokRR5qSMCrYkk,1909
17
- livekit_plugins_google-1.2.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
- livekit_plugins_google-1.2.15.dist-info/RECORD,,
15
+ livekit/plugins/google/realtime/realtime_api.py,sha256=mePWYDAdb3i9l5a-m7JwmTuU_mbtYngR-XRvOYrqxe4,51109
16
+ livekit_plugins_google-1.2.16.dist-info/METADATA,sha256=bBUYb-Z4kIrrK1s3ThbGr-PCt09zTkXuseOQhMjw3eA,1925
17
+ livekit_plugins_google-1.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
+ livekit_plugins_google-1.2.16.dist-info/RECORD,,