google-genai 1.12.0__py3-none-any.whl → 1.12.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.
- google/genai/_api_client.py +0 -17
- google/genai/types.py +4 -3
- google/genai/version.py +1 -1
- {google_genai-1.12.0.dist-info → google_genai-1.12.1.dist-info}/METADATA +1 -1
- {google_genai-1.12.0.dist-info → google_genai-1.12.1.dist-info}/RECORD +8 -8
- {google_genai-1.12.0.dist-info → google_genai-1.12.1.dist-info}/WHEEL +0 -0
- {google_genai-1.12.0.dist-info → google_genai-1.12.1.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.12.0.dist-info → google_genai-1.12.1.dist-info}/top_level.txt +0 -0
google/genai/_api_client.py
CHANGED
@@ -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."""
|
google/genai/types.py
CHANGED
@@ -10757,9 +10757,10 @@ LiveConnectParametersOrDict = Union[
|
|
10757
10757
|
LiveConnectParameters, LiveConnectParametersDict
|
10758
10758
|
]
|
10759
10759
|
|
10760
|
-
|
10761
|
-
BlobImageUnion = Union[Blob,
|
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
|
|
google/genai/version.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
google/genai/__init__.py,sha256=IYw-PcsdgjSpS1mU_ZcYkTfPocsJ4aVmrDxP7vX7c6Y,709
|
2
|
-
google/genai/_api_client.py,sha256=
|
2
|
+
google/genai/_api_client.py,sha256=yUHm1KEij9_R7Ha_quQQgHFgh6DIfrqw5QrR0j_8QYA,36594
|
3
3
|
google/genai/_api_module.py,sha256=66FsFq9N8PdTegDyx3am3NHpI0Bw7HBmifUMCrZsx_Q,902
|
4
4
|
google/genai/_automatic_function_calling_util.py,sha256=MB4lzbiLuosYXYafJq9d8QhTfK21cSkIwyzZr6W5Hjw,10294
|
5
5
|
google/genai/_common.py,sha256=mBI8hEiztd3M_kBRTja0cprdGEoH5xNFCUykWDTtl-A,10573
|
@@ -20,10 +20,10 @@ google/genai/operations.py,sha256=wWGngU4N3U2y_JteBkwqTmoNncehk2NcZgPyHaVulfI,20
|
|
20
20
|
google/genai/pagers.py,sha256=dhdKUr4KiUGHOt8OPLo51I0qXJpBU2iH4emTKC4UINI,6797
|
21
21
|
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
22
22
|
google/genai/tunings.py,sha256=X2dIs9v9e91bd-PwZja-BaA3kNQxwyAjt1x5fhP4Phk,47594
|
23
|
-
google/genai/types.py,sha256=
|
24
|
-
google/genai/version.py,sha256=
|
25
|
-
google_genai-1.12.
|
26
|
-
google_genai-1.12.
|
27
|
-
google_genai-1.12.
|
28
|
-
google_genai-1.12.
|
29
|
-
google_genai-1.12.
|
23
|
+
google/genai/types.py,sha256=yTBlu1tyDPI4UR-V9Fh9EcR1Opy4wqkbEm68Io0K0NY,365205
|
24
|
+
google/genai/version.py,sha256=lT_-3tX2lihTl_wwT5ZNU8g2d7UDke89EXlHYebgJys,627
|
25
|
+
google_genai-1.12.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
26
|
+
google_genai-1.12.1.dist-info/METADATA,sha256=emZkEZu7uMl5RLI_2iz2EqiPXlsoliS8NkwaoK5d9AE,32891
|
27
|
+
google_genai-1.12.1.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
28
|
+
google_genai-1.12.1.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
29
|
+
google_genai-1.12.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|