google-genai 1.12.0__tar.gz → 1.12.1__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.
Files changed (35) hide show
  1. {google_genai-1.12.0/google_genai.egg-info → google_genai-1.12.1}/PKG-INFO +1 -1
  2. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_api_client.py +0 -17
  3. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/types.py +4 -3
  4. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/version.py +1 -1
  5. {google_genai-1.12.0 → google_genai-1.12.1/google_genai.egg-info}/PKG-INFO +1 -1
  6. {google_genai-1.12.0 → google_genai-1.12.1}/pyproject.toml +1 -1
  7. {google_genai-1.12.0 → google_genai-1.12.1}/LICENSE +0 -0
  8. {google_genai-1.12.0 → google_genai-1.12.1}/MANIFEST.in +0 -0
  9. {google_genai-1.12.0 → google_genai-1.12.1}/README.md +0 -0
  10. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/__init__.py +0 -0
  11. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_api_module.py +0 -0
  12. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_automatic_function_calling_util.py +0 -0
  13. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_common.py +0 -0
  14. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_extra_utils.py +0 -0
  15. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_live_converters.py +0 -0
  16. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_replay_api_client.py +0 -0
  17. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_test_api_client.py +0 -0
  18. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/_transformers.py +0 -0
  19. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/batches.py +0 -0
  20. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/caches.py +0 -0
  21. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/chats.py +0 -0
  22. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/client.py +0 -0
  23. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/errors.py +0 -0
  24. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/files.py +0 -0
  25. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/live.py +0 -0
  26. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/models.py +0 -0
  27. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/operations.py +0 -0
  28. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/pagers.py +0 -0
  29. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/py.typed +0 -0
  30. {google_genai-1.12.0 → google_genai-1.12.1}/google/genai/tunings.py +0 -0
  31. {google_genai-1.12.0 → google_genai-1.12.1}/google_genai.egg-info/SOURCES.txt +0 -0
  32. {google_genai-1.12.0 → google_genai-1.12.1}/google_genai.egg-info/dependency_links.txt +0 -0
  33. {google_genai-1.12.0 → google_genai-1.12.1}/google_genai.egg-info/requires.txt +0 -0
  34. {google_genai-1.12.0 → google_genai-1.12.1}/google_genai.egg-info/top_level.txt +0 -0
  35. {google_genai-1.12.0 → google_genai-1.12.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.12.0
3
+ Version: 1.12.1
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -283,15 +283,6 @@ class SyncHttpxClient(httpx.Client):
283
283
  kwargs.setdefault('follow_redirects', True)
284
284
  super().__init__(**kwargs)
285
285
 
286
- def __del__(self) -> None:
287
- """Closes the httpx client."""
288
- if self.is_closed:
289
- return
290
- try:
291
- self.close()
292
- except Exception:
293
- pass
294
-
295
286
 
296
287
  class AsyncHttpxClient(httpx.AsyncClient):
297
288
  """Async httpx client."""
@@ -301,14 +292,6 @@ class AsyncHttpxClient(httpx.AsyncClient):
301
292
  kwargs.setdefault('follow_redirects', True)
302
293
  super().__init__(**kwargs)
303
294
 
304
- def __del__(self) -> None:
305
- if self.is_closed:
306
- return
307
- try:
308
- asyncio.get_running_loop().create_task(self.aclose())
309
- except Exception:
310
- pass
311
-
312
295
 
313
296
  class BaseApiClient:
314
297
  """Client for calling HTTP APIs sending and receiving JSON."""
@@ -10757,9 +10757,10 @@ LiveConnectParametersOrDict = Union[
10757
10757
  LiveConnectParameters, LiveConnectParametersDict
10758
10758
  ]
10759
10759
 
10760
-
10761
- BlobImageUnion = Union[Blob, PIL.Image.Image]
10762
-
10760
+ if _is_pillow_image_imported:
10761
+ BlobImageUnion = Union[Blob, PIL_Image]
10762
+ else:
10763
+ BlobImageUnion = Blob # type: ignore[misc]
10763
10764
 
10764
10765
  BlobImageUnionDict = Union[BlobImageUnion, BlobDict]
10765
10766
 
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
  #
15
15
 
16
- __version__ = '1.12.0' # x-release-please-version
16
+ __version__ = '1.12.1' # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.12.0
3
+ Version: 1.12.1
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel", "twine>=6.1.0", "packaging>=24.2", "pkginfo>=
3
3
 
4
4
  [project]
5
5
  name = "google-genai"
6
- version = "1.12.0"
6
+ version = "1.12.1"
7
7
  description = "GenAI Python SDK"
8
8
  readme = "README.md"
9
9
  license = {text = "Apache-2.0"}
File without changes
File without changes
File without changes
File without changes