google-genai 1.6.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/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['api_version']
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['headers']
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['headers']
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['api_version']
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