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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.6.0
3
+ Version: 1.8.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
@@ -25,8 +25,9 @@ Requires-Dist: google-auth<3.0.0,>=2.14.1
25
25
  Requires-Dist: httpx<1.0.0,>=0.28.1
26
26
  Requires-Dist: pydantic<3.0.0,>=2.0.0
27
27
  Requires-Dist: requests<3.0.0,>=2.28.1
28
- Requires-Dist: websockets<15.0.0,>=13.0.0
28
+ Requires-Dist: websockets<15.1.0,>=13.0.0
29
29
  Requires-Dist: typing-extensions<5.0.0,>=4.11.0
30
+ Dynamic: license-file
30
31
 
31
32
  # Google Gen AI SDK
32
33
 
@@ -41,7 +42,7 @@ Google Gen AI Python SDK provides an interface for developers to integrate Googl
41
42
 
42
43
  ## Installation
43
44
 
44
- ```cmd
45
+ ```sh
45
46
  pip install google-genai
46
47
  ```
47
48
 
@@ -72,16 +73,16 @@ client = genai.Client(
72
73
  **(Optional) Using environment variables:**
73
74
 
74
75
  You can create a client by configuring the necessary environment variables.
75
- Configuration setup instructions depends on whether you're using the Gemini API
76
- on Vertex AI or the ML Dev Gemini API.
76
+ Configuration setup instructions depends on whether you're using the Gemini
77
+ Developer API or the Gemini API in Vertex AI.
77
78
 
78
- **ML Dev Gemini API:** Set `GOOGLE_API_KEY` as shown below:
79
+ **Gemini Developer API:** Set `GOOGLE_API_KEY` as shown below:
79
80
 
80
81
  ```bash
81
82
  export GOOGLE_API_KEY='your-api-key'
82
83
  ```
83
84
 
84
- **Vertex AI API:** Set `GOOGLE_GENAI_USE_VERTEXAI`, `GOOGLE_CLOUD_PROJECT`
85
+ **Gemini API on Vertex AI:** Set `GOOGLE_GENAI_USE_VERTEXAI`, `GOOGLE_CLOUD_PROJECT`
85
86
  and `GOOGLE_CLOUD_LOCATION`, as shown below:
86
87
 
87
88
  ```bash
@@ -142,7 +143,7 @@ response = client.models.generate_content(
142
143
  print(response.text)
143
144
  ```
144
145
 
145
- #### with uploaded file (Gemini API only)
146
+ #### with uploaded file (Gemini Developer API only)
146
147
  download the file in console.
147
148
 
148
149
  ```sh
@@ -347,6 +348,7 @@ The SDK will convert the list of parts into a content with a `user` role
347
348
  ```
348
349
 
349
350
  ##### Mix types in contents
351
+
350
352
  You can also provide a list of `types.ContentUnion`. The SDK leaves items of
351
353
  `types.Content` as is, it groups consecutive non function call parts into a
352
354
  single `types.UserContent`, and it groups consecutive function call parts into
@@ -0,0 +1,27 @@
1
+ google/genai/__init__.py,sha256=IYw-PcsdgjSpS1mU_ZcYkTfPocsJ4aVmrDxP7vX7c6Y,709
2
+ google/genai/_api_client.py,sha256=1KojMpO3mkvbQ07g-xCETKR1yiM7j9ct-2hv4by7KMg,31726
3
+ google/genai/_api_module.py,sha256=66FsFq9N8PdTegDyx3am3NHpI0Bw7HBmifUMCrZsx_Q,902
4
+ google/genai/_automatic_function_calling_util.py,sha256=xAH-96LIEmC-yefEIae8TrBPZZAI1UJrn0bAIZsISDE,10899
5
+ google/genai/_common.py,sha256=PNwxVUKCD93ICHJlwCTAItGH3Wjva5xHC7_7mc-p8oA,10153
6
+ google/genai/_extra_utils.py,sha256=l9U0uaq4TWdfY7fOpGR3LcsA6-TMEblfQlEXdC0IGPY,12462
7
+ google/genai/_replay_api_client.py,sha256=vvtcgngZMvhebrubhClVeW16UjE2nMUHQbtyBRmM4ko,18942
8
+ google/genai/_test_api_client.py,sha256=XNOWq8AkYbqInv1aljNGlFXsv8slQIWTYy_hdcCetD0,4797
9
+ google/genai/_transformers.py,sha256=XDbatGrYs4fIxfnJEW_MA_tz9i_Mub8b7Y5ejxXMMOE,29963
10
+ google/genai/batches.py,sha256=1gdwy5Tcd4kZGYulfwywqooOGv8Ozp8uk9kjes6rIgg,34485
11
+ google/genai/caches.py,sha256=uAhoZ1xm7nuHfHE9k17Ric9LCHDTPpcTMAkq0XI65ew,57320
12
+ google/genai/chats.py,sha256=4tg04v16WMth_FMeteUuAchLtPt-y3ydOLMksSRAyJM,16676
13
+ google/genai/client.py,sha256=uctarMTXcp6iC7XGH2lR5wDUqy17hy4-6CMi7seBlvo,10043
14
+ google/genai/errors.py,sha256=U48LRaXeSeJlhZ1t0sDDmbrebs7l0KohTMlKg8Nc_X4,4708
15
+ google/genai/files.py,sha256=Pt-ACLayO6_cE_ZrqzsjUkiuh3drZN6AIjqNp6x4IyE,38290
16
+ google/genai/live.py,sha256=S4HZs7VLae4cqWt6f8USh9ifShoUOSyGPFpREAHAFUk,32021
17
+ google/genai/models.py,sha256=oq5DHCT3ZZsZ_pvP9q4UDzH4MNl04sWl5jB1DrEZRsI,204310
18
+ google/genai/operations.py,sha256=ad3vU-xouT2E1pv2WN5L0qehFYSZ0rCEr1XQqqy5vbQ,19890
19
+ google/genai/pagers.py,sha256=1jxDjre7M_Udt0ntgOr_79iR0-axjdr_Q6tZZzVRli8,6784
20
+ google/genai/tunings.py,sha256=Aep8EDLsKXlBryLQNR8psVSybgy968LFZOsiyOI1JBM,47010
21
+ google/genai/types.py,sha256=QUT17RAmUy7Jqg_nyDeWg3FQrBbhT4ahLSgz06munNE,306100
22
+ google/genai/version.py,sha256=Xs4MLsO0MFRJxpS-X5D1EEWcnL72FdqoLyny7PKF548,626
23
+ google_genai-1.8.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
+ google_genai-1.8.0.dist-info/METADATA,sha256=rqPx2YUyy6rYTMzndxDnL_XDsbcYlm1gr2WbePC2-Ao,32890
25
+ google_genai-1.8.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
26
+ google_genai-1.8.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
27
+ google_genai-1.8.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.0.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,27 +0,0 @@
1
- google/genai/__init__.py,sha256=IYw-PcsdgjSpS1mU_ZcYkTfPocsJ4aVmrDxP7vX7c6Y,709
2
- google/genai/_api_client.py,sha256=xEme7KhIrp5lCDlde_HECGzH4TppepR8YraSDiGvhPc,30593
3
- google/genai/_api_module.py,sha256=66FsFq9N8PdTegDyx3am3NHpI0Bw7HBmifUMCrZsx_Q,902
4
- google/genai/_automatic_function_calling_util.py,sha256=xAH-96LIEmC-yefEIae8TrBPZZAI1UJrn0bAIZsISDE,10899
5
- google/genai/_common.py,sha256=u0qX3Uli_7qaYmoTZm9JnVzoMihD4ASPksmqmsjGSBs,10071
6
- google/genai/_extra_utils.py,sha256=l9U0uaq4TWdfY7fOpGR3LcsA6-TMEblfQlEXdC0IGPY,12462
7
- google/genai/_replay_api_client.py,sha256=OxZIAyyyI4D9uj0avNO0QGf4DPWJ4Pqf_MCbUs5pvYc,18459
8
- google/genai/_test_api_client.py,sha256=XNOWq8AkYbqInv1aljNGlFXsv8slQIWTYy_hdcCetD0,4797
9
- google/genai/_transformers.py,sha256=9cVaRp1zLOG27D7iNJeW2rw2jbjlvuEUeVl5SUN6ljY,29863
10
- google/genai/batches.py,sha256=K6RgkNWkYBjknADWe4hrv6BtXxWTl1N8b91Pg9MUnAc,41545
11
- google/genai/caches.py,sha256=JymnKSaSZYGyTl201tR8PgbZF6fRKdXuCKe4BILKkTc,57551
12
- google/genai/chats.py,sha256=ds5iF4hqvyHbHE4OlP1b5s93SwD0hlMNpWxT7db2E48,13493
13
- google/genai/client.py,sha256=jN4oNT5qQtX0UILuGcZqxmIL66DOJ-T5P086ygnSnSg,9877
14
- google/genai/errors.py,sha256=p_JbOU_eDKIIvWT6NBYGpZcxww622ChAi6eX1FuKKY0,3874
15
- google/genai/files.py,sha256=N9TQYyuHRQm4Gb2agjyOlWFljwK-hdPUr-mP0vF0Bc8,45532
16
- google/genai/live.py,sha256=Ftj_LxQ2zClK-2hbdRZNXkmnQQguduoNyVntIdPtTdM,32033
17
- google/genai/models.py,sha256=1ZlRfRqEl2OvaMvU1nIosGhX7g35A-hupUkrAYqwRpg,210141
18
- google/genai/operations.py,sha256=Tvlbk_AuQyXGL9b0wJbzgC8QGHGLSVjb1evbe-ZuZN0,20781
19
- google/genai/pagers.py,sha256=1jxDjre7M_Udt0ntgOr_79iR0-axjdr_Q6tZZzVRli8,6784
20
- google/genai/tunings.py,sha256=2tWvIkofDDnt6VPsfHAbcrfDIo7jAbIlpdwcx6-cUvM,48239
21
- google/genai/types.py,sha256=sVOdjxmviV_oA5JQEKKOlg4nwrlTQjbWGqtgqQACP6Y,299883
22
- google/genai/version.py,sha256=5_cjSe7IVSPjk4bpIyj-Lx9SCIXuPbulXr4yMMQgdT8,626
23
- google_genai-1.6.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
- google_genai-1.6.0.dist-info/METADATA,sha256=_zLVCqlXM9ZDEOPgINpGTkytCEN8pFJ_7Gg4DyPKpJQ,32842
25
- google_genai-1.6.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
26
- google_genai-1.6.0.dist-info/top_level.txt,sha256=_1QvSJIhFAGfxb79D6DhB7SUw2X6T4rwnz_LLrbcD3c,7
27
- google_genai-1.6.0.dist-info/RECORD,,