livekit-plugins-google 0.11.0__py3-none-any.whl → 0.11.1__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.
- livekit/plugins/google/beta/realtime/api_proto.py +1 -1
- livekit/plugins/google/beta/realtime/realtime_api.py +5 -1
- livekit/plugins/google/version.py +1 -1
- {livekit_plugins_google-0.11.0.dist-info → livekit_plugins_google-0.11.1.dist-info}/METADATA +1 -1
- {livekit_plugins_google-0.11.0.dist-info → livekit_plugins_google-0.11.1.dist-info}/RECORD +7 -7
- {livekit_plugins_google-0.11.0.dist-info → livekit_plugins_google-0.11.1.dist-info}/WHEEL +1 -1
- {livekit_plugins_google-0.11.0.dist-info → livekit_plugins_google-0.11.1.dist-info}/top_level.txt +0 -0
@@ -83,6 +83,7 @@ class Capabilities:
|
|
83
83
|
class ModelOptions:
|
84
84
|
model: LiveAPIModels | str
|
85
85
|
api_key: str | None
|
86
|
+
api_version: str
|
86
87
|
voice: Voice | str
|
87
88
|
response_modalities: list[Modality] | None
|
88
89
|
vertexai: bool
|
@@ -107,6 +108,7 @@ class RealtimeModel:
|
|
107
108
|
instructions: str | None = None,
|
108
109
|
model: LiveAPIModels | str = "gemini-2.0-flash-exp",
|
109
110
|
api_key: str | None = None,
|
111
|
+
api_version: str = "v1alpha",
|
110
112
|
voice: Voice | str = "Puck",
|
111
113
|
modalities: list[Modality] = [Modality.AUDIO],
|
112
114
|
enable_user_audio_transcription: bool = True,
|
@@ -136,6 +138,7 @@ class RealtimeModel:
|
|
136
138
|
Args:
|
137
139
|
instructions (str, optional): Initial system instructions for the model. Defaults to "".
|
138
140
|
api_key (str or None, optional): Google Gemini API key. If None, will attempt to read from the environment variable GOOGLE_API_KEY.
|
141
|
+
api_version (str, optional): The version of the API to use. Defaults to "v1alpha".
|
139
142
|
modalities (list[Modality], optional): Modalities to use, such as ["TEXT", "AUDIO"]. Defaults to ["AUDIO"].
|
140
143
|
model (str or None, optional): The name of the model to use. Defaults to "gemini-2.0-flash-exp".
|
141
144
|
voice (api_proto.Voice, optional): Voice setting for audio outputs. Defaults to "Puck".
|
@@ -187,6 +190,7 @@ class RealtimeModel:
|
|
187
190
|
self._rt_sessions: list[GeminiRealtimeSession] = []
|
188
191
|
self._opts = ModelOptions(
|
189
192
|
model=model,
|
193
|
+
api_version=api_version,
|
190
194
|
api_key=self._api_key,
|
191
195
|
voice=voice,
|
192
196
|
enable_user_audio_transcription=enable_user_audio_transcription,
|
@@ -289,7 +293,7 @@ class GeminiRealtimeSession(utils.EventEmitter[EventTypes]):
|
|
289
293
|
tools=tools,
|
290
294
|
)
|
291
295
|
self._client = genai.Client(
|
292
|
-
http_options=HttpOptions(api_version=
|
296
|
+
http_options=HttpOptions(api_version=self._opts.api_version),
|
293
297
|
api_key=self._opts.api_key,
|
294
298
|
vertexai=self._opts.vertexai,
|
295
299
|
project=self._opts.project,
|
@@ -6,13 +6,13 @@ livekit/plugins/google/models.py,sha256=SGjAumdDK97NNLwMFcqZdKR68f1NoGB2Rk1UP2-i
|
|
6
6
|
livekit/plugins/google/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
livekit/plugins/google/stt.py,sha256=96GJmGDAIBdCpDECArwIXpj2s1xlcA_zuvTnwsvq4xA,22854
|
8
8
|
livekit/plugins/google/tts.py,sha256=pG9_pibO3NDGEMa4huU5S9lbeyI3daQyrS17SuTKfZI,8008
|
9
|
-
livekit/plugins/google/version.py,sha256=
|
9
|
+
livekit/plugins/google/version.py,sha256=LeUJJQ9jwADplJbF46ClzVjYAClwJEhZMCToNJN9lWc,601
|
10
10
|
livekit/plugins/google/beta/__init__.py,sha256=AxRYc7NGG62Tv1MmcZVCDHNvlhbC86hM-_yP01Qb28k,47
|
11
11
|
livekit/plugins/google/beta/realtime/__init__.py,sha256=sGTn6JFNyA30QUXBZ_BV3l2eHpGAzR35ByXxg77vWNU,205
|
12
|
-
livekit/plugins/google/beta/realtime/api_proto.py,sha256=
|
13
|
-
livekit/plugins/google/beta/realtime/realtime_api.py,sha256=
|
12
|
+
livekit/plugins/google/beta/realtime/api_proto.py,sha256=9EhmwgeIgKDqdSijv5Q9pgx7UhAakK02ZDwbnUsra_o,657
|
13
|
+
livekit/plugins/google/beta/realtime/realtime_api.py,sha256=8JdWUMUheGhy1ia6JbN3_U2_cL7CNs8-1fTOAgW4I38,22999
|
14
14
|
livekit/plugins/google/beta/realtime/transcriber.py,sha256=rjXO0cSPr3HATxrSfv1MX7IbrjmiTvnLPF280BfRBL8,9809
|
15
|
-
livekit_plugins_google-0.11.
|
16
|
-
livekit_plugins_google-0.11.
|
17
|
-
livekit_plugins_google-0.11.
|
18
|
-
livekit_plugins_google-0.11.
|
15
|
+
livekit_plugins_google-0.11.1.dist-info/METADATA,sha256=m7B07abY9wTbEJVa3dmdsgfatxYwJFwDNQYhyJgIPJU,3732
|
16
|
+
livekit_plugins_google-0.11.1.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
17
|
+
livekit_plugins_google-0.11.1.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
18
|
+
livekit_plugins_google-0.11.1.dist-info/RECORD,,
|
{livekit_plugins_google-0.11.0.dist-info → livekit_plugins_google-0.11.1.dist-info}/top_level.txt
RENAMED
File without changes
|