google-genai 1.31.0__py3-none-any.whl → 1.33.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 -9
- google/genai/_base_transformers.py +26 -0
- google/genai/_local_tokenizer_loader.py +223 -0
- google/genai/_operations_converters.py +307 -0
- google/genai/_replay_api_client.py +15 -0
- google/genai/_transformers.py +0 -10
- google/genai/caches.py +14 -2
- google/genai/files.py +12 -2
- google/genai/local_tokenizer.py +362 -0
- google/genai/models.py +171 -196
- google/genai/tunings.py +134 -0
- google/genai/types.py +402 -304
- google/genai/version.py +1 -1
- {google_genai-1.31.0.dist-info → google_genai-1.33.0.dist-info}/METADATA +6 -6
- {google_genai-1.31.0.dist-info → google_genai-1.33.0.dist-info}/RECORD +18 -14
- {google_genai-1.31.0.dist-info → google_genai-1.33.0.dist-info}/WHEEL +0 -0
- {google_genai-1.31.0.dist-info → google_genai-1.33.0.dist-info}/licenses/LICENSE +0 -0
- {google_genai-1.31.0.dist-info → google_genai-1.33.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.33.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
|
|
@@ -1,35 +1,39 @@
|
|
1
1
|
google/genai/__init__.py,sha256=SKz_9WQKA3R4OpJIDJlgssVfizLNDG2tuWtOD9pxrPE,729
|
2
2
|
google/genai/_adapters.py,sha256=Kok38miNYJff2n--l0zEK_hbq0y2rWOH7k75J7SMYbQ,1744
|
3
|
-
google/genai/_api_client.py,sha256=
|
3
|
+
google/genai/_api_client.py,sha256=zk-X1JnZ2C5dwe9Huqwtdd8LGdrIfZP3ILR_vQcu9oI,61269
|
4
4
|
google/genai/_api_module.py,sha256=lj8eUWx8_LBGBz-49qz6_ywWm3GYp3d8Bg5JoOHbtbI,902
|
5
5
|
google/genai/_automatic_function_calling_util.py,sha256=xXNkJR-pzSMkeSXMz3Jw-kMHFbTJEiRJ3wocuwtWW4I,11627
|
6
|
+
google/genai/_base_transformers.py,sha256=wljA6m4tLl4XLGlBC2DNOls5N9-X9tffBq0M7i8jgpw,1034
|
6
7
|
google/genai/_base_url.py,sha256=E5H4dew14Y16qfnB3XRnjSCi19cJVlkaMNoM_8ip-PM,1597
|
7
8
|
google/genai/_common.py,sha256=SmBlz7AQZbKbT8KE5vsvK5Iz1OaRwHF6J51KDJBbjMo,19936
|
8
9
|
google/genai/_extra_utils.py,sha256=6mxUnbwKkrAJ9zR8JP4nCKuA0F1BFqAc2t5mzdAONxk,20603
|
9
10
|
google/genai/_live_converters.py,sha256=brba9Wk_ljc8auy8w0n49dZXYHTBYhegKQcnjr89QgM,101812
|
11
|
+
google/genai/_local_tokenizer_loader.py,sha256=cGN1F0f7hNjRIGCGTLeox7IGAZf_YcvZjSp2rCyhUak,7465
|
10
12
|
google/genai/_mcp_utils.py,sha256=HuWJ8FUjquv40Mf_QjcL5r5yXWrS-JjINsjlOSbbyAc,3870
|
11
|
-
google/genai/
|
13
|
+
google/genai/_operations_converters.py,sha256=I1b46qhGCeB5uHNuyrMxpFqmzWuvSFQ5pS52csd1J4E,9080
|
14
|
+
google/genai/_replay_api_client.py,sha256=hXs5NuCpcZU-e6rfeWBStZmF33_2vn1dAo3NeTA8P2o,22413
|
12
15
|
google/genai/_test_api_client.py,sha256=4ruFIy5_1qcbKqqIBu3HSQbpSOBrxiecBtDZaTGFR1s,4797
|
13
16
|
google/genai/_tokens_converters.py,sha256=jPHlskl303A63uEshdwLeSSOls9kuNO1WMY5NAYF5U0,24382
|
14
|
-
google/genai/_transformers.py,sha256=
|
17
|
+
google/genai/_transformers.py,sha256=Kfo6LP3HoCco2E9EQYnRyElgOSBXZ_SKI-Spx3AwUWw,38917
|
15
18
|
google/genai/batches.py,sha256=1YIkibVzEX0p_va2kfNL3tc-X7Id13whWuhKto0mch8,87774
|
16
|
-
google/genai/caches.py,sha256=
|
19
|
+
google/genai/caches.py,sha256=6Y3D2qSwlvX8CunOiJRcRWtaiFP0r-9oMcyqnegC7Sc,66451
|
17
20
|
google/genai/chats.py,sha256=pIBw8d13llupLn4a7vP6vnpbzDcvCCrZZ-Q2r8Cvo7g,16652
|
18
21
|
google/genai/client.py,sha256=wXnfZBSv9p-yKtX_gabUrfBXoYHuqHhzK_VgwRttMgY,10777
|
19
22
|
google/genai/errors.py,sha256=GlEvypbRgF3h5BxlocmWVf-S9kzERA_lwGLCMyAvpcY,5714
|
20
|
-
google/genai/files.py,sha256=
|
23
|
+
google/genai/files.py,sha256=T8uDgqCQheFwYYYJdN4lax4NOR_q6bJyr0jQf079VeE,40607
|
21
24
|
google/genai/live.py,sha256=BUyIOt-PON4SuJtKXA6l3ujzA3GUbYWMGSgZvsyKjrg,39674
|
22
25
|
google/genai/live_music.py,sha256=3GG9nsto8Vhkohcs-4CPMS4DFp1ZtMuLYzHfvEPYAeg,6971
|
23
|
-
google/genai/
|
26
|
+
google/genai/local_tokenizer.py,sha256=HpQk8toJFGvRozdyboOhdAFDOFAiZ07IdXeGiR25nSM,13252
|
27
|
+
google/genai/models.py,sha256=RxGIm7dmgE4I-4yru835VrJ3MuN5mz-OaRcTrFfefKI,264975
|
24
28
|
google/genai/operations.py,sha256=Ccm4EW13cT_EtCq8Fa3n8jlQySyy9KqJ98ZK4pF0DDA,12815
|
25
29
|
google/genai/pagers.py,sha256=m0SfWWn1EJs2k1On3DZx371qb8g2BRm_188ExsicIRc,7098
|
26
30
|
google/genai/py.typed,sha256=RsMFoLwBkAvY05t6izop4UHZtqOPLiKp3GkIEizzmQY,40
|
27
31
|
google/genai/tokens.py,sha256=8RbZ0kgvyKT3SwbgIUOHr6TTZL24v4fqYarhlA8r1ac,12503
|
28
|
-
google/genai/tunings.py,sha256=
|
29
|
-
google/genai/types.py,sha256=
|
30
|
-
google/genai/version.py,sha256=
|
31
|
-
google_genai-1.
|
32
|
-
google_genai-1.
|
33
|
-
google_genai-1.
|
34
|
-
google_genai-1.
|
35
|
-
google_genai-1.
|
32
|
+
google/genai/tunings.py,sha256=vVV9NvrtzoWDLzcTLSrgD5lzFeSRJdCB1QtfzL3yj3c,63275
|
33
|
+
google/genai/types.py,sha256=UcWcyrKlKgbfumHluov2G8UsOoq6bnWDKQJIfKifuv8,531058
|
34
|
+
google/genai/version.py,sha256=t_FYlWqCnBvBCPieE9c3vw6-ven4MXsOqgsxhMq9U0c,627
|
35
|
+
google_genai-1.33.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
36
|
+
google_genai-1.33.0.dist-info/METADATA,sha256=C4_2IQgzIZ77LF1Vpl2VKdoL8Xx2KCy3ni8COdjvalI,43080
|
37
|
+
google_genai-1.33.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
google_genai-1.33.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
|
39
|
+
google_genai-1.33.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|