google-genai 1.7.0__py3-none-any.whl → 1.8.0__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.
- google/genai/_api_client.py +93 -78
- google/genai/_replay_api_client.py +22 -14
- google/genai/_transformers.py +23 -14
- google/genai/batches.py +60 -294
- google/genai/caches.py +545 -525
- google/genai/chats.py +15 -8
- google/genai/client.py +5 -3
- google/genai/errors.py +46 -23
- google/genai/files.py +88 -304
- google/genai/live.py +4 -4
- google/genai/models.py +1991 -2290
- google/genai/operations.py +103 -123
- google/genai/tunings.py +255 -271
- google/genai/types.py +207 -74
- google/genai/version.py +1 -1
- {google_genai-1.7.0.dist-info → google_genai-1.8.0.dist-info}/METADATA +3 -2
- google_genai-1.8.0.dist-info/RECORD +27 -0
- {google_genai-1.7.0.dist-info → google_genai-1.8.0.dist-info}/WHEEL +1 -1
- google_genai-1.7.0.dist-info/RECORD +0 -27
- {google_genai-1.7.0.dist-info → google_genai-1.8.0.dist-info/licenses}/LICENSE +0 -0
- {google_genai-1.7.0.dist-info → google_genai-1.8.0.dist-info}/top_level.txt +0 -0
google/genai/live.py
CHANGED
@@ -873,9 +873,9 @@ class AsyncLive(_api_module.BaseModule):
|
|
873
873
|
|
874
874
|
if self._api_client.api_key:
|
875
875
|
api_key = self._api_client.api_key
|
876
|
-
version = self._api_client._http_options
|
876
|
+
version = self._api_client._http_options.api_version
|
877
877
|
uri = f'{base_url}/ws/google.ai.generativelanguage.{version}.GenerativeService.BidiGenerateContent?key={api_key}'
|
878
|
-
headers = self._api_client._http_options
|
878
|
+
headers = self._api_client._http_options.headers
|
879
879
|
request_dict = _common.convert_to_dict(
|
880
880
|
self._LiveSetup_to_mldev(
|
881
881
|
model=transformed_model,
|
@@ -894,12 +894,12 @@ class AsyncLive(_api_module.BaseModule):
|
|
894
894
|
auth_req = google.auth.transport.requests.Request()
|
895
895
|
creds.refresh(auth_req)
|
896
896
|
bearer_token = creds.token
|
897
|
-
headers = self._api_client._http_options
|
897
|
+
headers = self._api_client._http_options.headers
|
898
898
|
if headers is not None:
|
899
899
|
headers.update({
|
900
900
|
'Authorization': 'Bearer {}'.format(bearer_token),
|
901
901
|
})
|
902
|
-
version = self._api_client._http_options
|
902
|
+
version = self._api_client._http_options.api_version
|
903
903
|
uri = f'{base_url}/ws/google.cloud.aiplatform.{version}.LlmBidiService/BidiGenerateContent'
|
904
904
|
location = self._api_client.location
|
905
905
|
project = self._api_client.project
|