google-genai 1.30.0__py3-none-any.whl → 1.32.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 +32 -32
- google/genai/_automatic_function_calling_util.py +12 -0
- google/genai/_base_transformers.py +26 -0
- google/genai/_live_converters.py +1 -0
- google/genai/_local_tokenizer_loader.py +223 -0
- google/genai/_operations_converters.py +307 -0
- google/genai/_tokens_converters.py +1 -0
- google/genai/_transformers.py +0 -10
- google/genai/batches.py +141 -0
- google/genai/caches.py +15 -2
- google/genai/files.py +11 -2
- google/genai/local_tokenizer.py +362 -0
- google/genai/models.py +518 -17
- google/genai/operations.py +1 -0
- google/genai/tunings.py +135 -0
- google/genai/types.py +781 -323
- google/genai/version.py +1 -1
- {google_genai-1.30.0.dist-info → google_genai-1.32.0.dist-info}/METADATA +6 -6
- google_genai-1.32.0.dist-info/RECORD +39 -0
- google_genai-1.30.0.dist-info/RECORD +0 -35
- {google_genai-1.30.0.dist-info → google_genai-1.32.0.dist-info}/WHEEL +0 -0
- {google_genai-1.30.0.dist-info → google_genai-1.32.0.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.30.0.dist-info → google_genai-1.32.0.dist-info}/top_level.txt +0 -0
google/genai/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: google-genai
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.32.0
|
4
4
|
Summary: GenAI Python SDK
|
5
5
|
Author-email: Google LLC <googleapis-packages@google.com>
|
6
6
|
License: Apache-2.0
|
@@ -183,7 +183,7 @@ Then, you can pass it through the following way:
|
|
183
183
|
|
184
184
|
http_options = types.HttpOptions(
|
185
185
|
client_args={'proxy': 'socks5://user:pass@host:port'},
|
186
|
-
async_client_args={'proxy': 'socks5://user:pass@host:port'}
|
186
|
+
async_client_args={'proxy': 'socks5://user:pass@host:port'},
|
187
187
|
)
|
188
188
|
|
189
189
|
client=Client(..., http_options=http_options)
|
@@ -388,7 +388,7 @@ The SDK converts all non function call parts into a content with a `user` role.
|
|
388
388
|
[
|
389
389
|
types.UserContent(parts=[
|
390
390
|
types.Part.from_uri(
|
391
|
-
|
391
|
+
file_uri: 'gs://generativeai-downloads/images/scones.jpg',
|
392
392
|
mime_type: 'image/jpeg',
|
393
393
|
)
|
394
394
|
])
|
@@ -824,10 +824,10 @@ user_profile = {
|
|
824
824
|
|
825
825
|
response = client.models.generate_content(
|
826
826
|
model='gemini-2.0-flash',
|
827
|
-
contents='Give me
|
827
|
+
contents='Give me a random user profile.',
|
828
828
|
config={
|
829
829
|
'response_mime_type': 'application/json',
|
830
|
-
'response_json_schema':
|
830
|
+
'response_json_schema': user_profile
|
831
831
|
},
|
832
832
|
)
|
833
833
|
print(response.parsed)
|
@@ -1588,7 +1588,7 @@ batch_job = client.batches.create(
|
|
1588
1588
|
}],
|
1589
1589
|
"role": "user",
|
1590
1590
|
}],
|
1591
|
-
"config
|
1591
|
+
"config": {"response_modalities": ["text"]},
|
1592
1592
|
}],
|
1593
1593
|
)
|
1594
1594
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
google/genai/__init__.py,sha256=SKz_9WQKA3R4OpJIDJlgssVfizLNDG2tuWtOD9pxrPE,729
|
2
|
+
google/genai/_adapters.py,sha256=Kok38miNYJff2n--l0zEK_hbq0y2rWOH7k75J7SMYbQ,1744
|
3
|
+
google/genai/_api_client.py,sha256=N9E_4oazw93NDpbQ3kJZ50m10cN2ssDFBM2gY44Ox-Q,60213
|
4
|
+
google/genai/_api_module.py,sha256=lj8eUWx8_LBGBz-49qz6_ywWm3GYp3d8Bg5JoOHbtbI,902
|
5
|
+
google/genai/_automatic_function_calling_util.py,sha256=xXNkJR-pzSMkeSXMz3Jw-kMHFbTJEiRJ3wocuwtWW4I,11627
|
6
|
+
google/genai/_base_transformers.py,sha256=wljA6m4tLl4XLGlBC2DNOls5N9-X9tffBq0M7i8jgpw,1034
|
7
|
+
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
8
|
+
google/genai/_common.py,sha256=SmBlz7AQZbKbT8KE5vsvK5Iz1OaRwHF6J51KDJBbjMo,19936
|
9
|
+
google/genai/_extra_utils.py,sha256=6mxUnbwKkrAJ9zR8JP4nCKuA0F1BFqAc2t5mzdAONxk,20603
|
10
|
+
google/genai/_live_converters.py,sha256=brba9Wk_ljc8auy8w0n49dZXYHTBYhegKQcnjr89QgM,101812
|
11
|
+
google/genai/_local_tokenizer_loader.py,sha256=cGN1F0f7hNjRIGCGTLeox7IGAZf_YcvZjSp2rCyhUak,7465
|
12
|
+
google/genai/_mcp_utils.py,sha256=HuWJ8FUjquv40Mf_QjcL5r5yXWrS-JjINsjlOSbbyAc,3870
|
13
|
+
google/genai/_operations_converters.py,sha256=I1b46qhGCeB5uHNuyrMxpFqmzWuvSFQ5pS52csd1J4E,9080
|
14
|
+
google/genai/_replay_api_client.py,sha256=MRUxUWCC9PoTk-NxsK3rGB8yw8cCrUa8ZeTVU3oEguw,21729
|
15
|
+
google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
|
16
|
+
google/genai/_tokens_converters.py,sha256=jPHlskl303A63uEshdwLeSSOls9kuNO1WMY5NAYF5U0,24382
|
17
|
+
google/genai/_transformers.py,sha256=Kfo6LP3HoCco2E9EQYnRyElgOSBXZ_SKI-Spx3AwUWw,38917
|
18
|
+
google/genai/batches.py,sha256=1YIkibVzEX0p_va2kfNL3tc-X7Id13whWuhKto0mch8,87774
|
19
|
+
google/genai/caches.py,sha256=6Y3D2qSwlvX8CunOiJRcRWtaiFP0r-9oMcyqnegC7Sc,66451
|
20
|
+
google/genai/chats.py,sha256=pIBw8d13llupLn4a7vP6vnpbzDcvCCrZZ-Q2r8Cvo7g,16652
|
21
|
+
google/genai/client.py,sha256=wXnfZBSv9p-yKtX_gabUrfBXoYHuqHhzK_VgwRttMgY,10777
|
22
|
+
google/genai/errors.py,sha256=GlEvypbRgF3h5BxlocmWVf-S9kzERA_lwGLCMyAvpcY,5714
|
23
|
+
google/genai/files.py,sha256=rQ0Uhu69vl3tfis7-8nJTvSprG4_iJ917O3RUk5VktI,40499
|
24
|
+
google/genai/live.py,sha256=BUyIOt-PON4SuJtKXA6l3ujzA3GUbYWMGSgZvsyKjrg,39674
|
25
|
+
google/genai/live_music.py,sha256=3GG9nsto8Vhkohcs-4CPMS4DFp1ZtMuLYzHfvEPYAeg,6971
|
26
|
+
google/genai/local_tokenizer.py,sha256=HpQk8toJFGvRozdyboOhdAFDOFAiZ07IdXeGiR25nSM,13252
|
27
|
+
google/genai/models.py,sha256=HGClCfhxxbnUzIO4DpnSQDZR6dFu1IrFheZACSbzTiE,270132
|
28
|
+
google/genai/operations.py,sha256=Ccm4EW13cT_EtCq8Fa3n8jlQySyy9KqJ98ZK4pF0DDA,12815
|
29
|
+
google/genai/pagers.py,sha256=m0SfWWn1EJs2k1On3DZx371qb8g2BRm_188ExsicIRc,7098
|
30
|
+
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
31
|
+
google/genai/tokens.py,sha256=8RbZ0kgvyKT3SwbgIUOHr6TTZL24v4fqYarhlA8r1ac,12503
|
32
|
+
google/genai/tunings.py,sha256=vVV9NvrtzoWDLzcTLSrgD5lzFeSRJdCB1QtfzL3yj3c,63275
|
33
|
+
google/genai/types.py,sha256=XMZL1osXHOouqOVyTwS-qwXT5AK2An2HPuqF7pimaf0,531165
|
34
|
+
google/genai/version.py,sha256=KCqwx3Lh-PjkDZtUZzAB9noPMjnyXJ47TxwZyrlQKfc,627
|
35
|
+
google_genai-1.32.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
36
|
+
google_genai-1.32.0.dist-info/METADATA,sha256=Nc6wUVuBTbBhpNtBnXANl5veJADPutVAqLwWv19H5rQ,43080
|
37
|
+
google_genai-1.32.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
google_genai-1.32.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
39
|
+
google_genai-1.32.0.dist-info/RECORD,,
|
@@ -1,35 +0,0 @@
|
|
1
|
-
google/genai/__init__.py,sha256=SKz_9WQKA3R4OpJIDJlgssVfizLNDG2tuWtOD9pxrPE,729
|
2
|
-
google/genai/_adapters.py,sha256=Kok38miNYJff2n--l0zEK_hbq0y2rWOH7k75J7SMYbQ,1744
|
3
|
-
google/genai/_api_client.py,sha256=y96uJ5u_xBBH_F9143XXEMPe5B8rUc7ZCVqEj9xk6Qc,60245
|
4
|
-
google/genai/_api_module.py,sha256=lj8eUWx8_LBGBz-49qz6_ywWm3GYp3d8Bg5JoOHbtbI,902
|
5
|
-
google/genai/_automatic_function_calling_util.py,sha256=Y_GyvIznYWLEga0rnmrvjlj-UYWbYYDmwjbSthaZXcM,11293
|
6
|
-
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
7
|
-
google/genai/_common.py,sha256=SmBlz7AQZbKbT8KE5vsvK5Iz1OaRwHF6J51KDJBbjMo,19936
|
8
|
-
google/genai/_extra_utils.py,sha256=6mxUnbwKkrAJ9zR8JP4nCKuA0F1BFqAc2t5mzdAONxk,20603
|
9
|
-
google/genai/_live_converters.py,sha256=_PD5U1amL8QwdoAD05LZEWFBP2uO7qdxCzdbiQ_ZCmk,101811
|
10
|
-
google/genai/_mcp_utils.py,sha256=HuWJ8FUjquv40Mf_QjcL5r5yXWrS-JjINsjlOSbbyAc,3870
|
11
|
-
google/genai/_replay_api_client.py,sha256=MRUxUWCC9PoTk-NxsK3rGB8yw8cCrUa8ZeTVU3oEguw,21729
|
12
|
-
google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
|
13
|
-
google/genai/_tokens_converters.py,sha256=pW0kumr7_dkqcg_QRCgHZnF98drihxigMfrSkn_qO-U,24381
|
14
|
-
google/genai/_transformers.py,sha256=fKojZKVNzkfEAitK2NnNa648QNRZGSbJdix2llmpRds,39315
|
15
|
-
google/genai/batches.py,sha256=GPT0M0EqFsc8TS3fOyNioU7sKa8FhIhWqoan3hVYg2g,82297
|
16
|
-
google/genai/caches.py,sha256=cNCk5fGcsd3xq1VcK9sSfey1zq9u8J802ORpsHiofvo,65952
|
17
|
-
google/genai/chats.py,sha256=pIBw8d13llupLn4a7vP6vnpbzDcvCCrZZ-Q2r8Cvo7g,16652
|
18
|
-
google/genai/client.py,sha256=wXnfZBSv9p-yKtX_gabUrfBXoYHuqHhzK_VgwRttMgY,10777
|
19
|
-
google/genai/errors.py,sha256=GlEvypbRgF3h5BxlocmWVf-S9kzERA_lwGLCMyAvpcY,5714
|
20
|
-
google/genai/files.py,sha256=Z9CP2RLAZlZDE3zWXVNA2LF3x7wJTXOhNzDoSyHmr9k,40154
|
21
|
-
google/genai/live.py,sha256=BUyIOt-PON4SuJtKXA6l3ujzA3GUbYWMGSgZvsyKjrg,39674
|
22
|
-
google/genai/live_music.py,sha256=3GG9nsto8Vhkohcs-4CPMS4DFp1ZtMuLYzHfvEPYAeg,6971
|
23
|
-
google/genai/models.py,sha256=uZNEFqqhL5Ugp0QcWxV_-oDRko_XHZ6WcGzBidvVqQQ,254851
|
24
|
-
google/genai/operations.py,sha256=3eudPaItN6_JJKMWNT9lLIJLUGyAQfFK1xken7Rv8vQ,12814
|
25
|
-
google/genai/pagers.py,sha256=m0SfWWn1EJs2k1On3DZx371qb8g2BRm_188ExsicIRc,7098
|
26
|
-
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
27
|
-
google/genai/tokens.py,sha256=8RbZ0kgvyKT3SwbgIUOHr6TTZL24v4fqYarhlA8r1ac,12503
|
28
|
-
google/genai/tunings.py,sha256=CBPiAZ41Zzof_jt6uFiP9_EwtFuR7nHofiqizRpbaB4,59188
|
29
|
-
google/genai/types.py,sha256=OzCnEeRjHJyuNdU3Ukx3yAqlIXndHetglVsRR1NHMP4,516778
|
30
|
-
google/genai/version.py,sha256=Scmyh9VVg7X95sYfcKa5KVb3gmlgFDkd0MfXsyODXOo,627
|
31
|
-
google_genai-1.30.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
32
|
-
google_genai-1.30.0.dist-info/METADATA,sha256=p2au59XWWMVRIISqxky0LVrqOdatrFujDUYnrnFkjOY,43091
|
33
|
-
google_genai-1.30.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
34
|
-
google_genai-1.30.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
35
|
-
google_genai-1.30.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|