@@ -11,7 +11,7 @@ Google Gen AI Python SDK provides an interface for developers to integrate Googl
11
11
12
12
## Installation
13
13
14
- ``` cmd
14
+ ``` sh
15
15
pip install google-genai
16
16
```
17
17
@@ -42,16 +42,16 @@ client = genai.Client(
42
42
** (Optional) Using environment variables:**
43
43
44
44
You can create a client by configuring the necessary environment variables.
45
- Configuration setup instructions depends on whether you're using the Gemini API
46
- on Vertex AI or the ML Dev Gemini API.
45
+ Configuration setup instructions depends on whether you're using the Gemini
46
+ Developer API or the Gemini API in Vertex AI .
47
47
48
- ** ML Dev Gemini API:** Set ` GOOGLE_API_KEY ` as shown below:
48
+ ** Gemini Developer API:** Set ` GOOGLE_API_KEY ` as shown below:
49
49
50
50
``` bash
51
51
export GOOGLE_API_KEY=' your-api-key'
52
52
```
53
53
54
- ** Vertex AI API :** Set ` GOOGLE_GENAI_USE_VERTEXAI ` , ` GOOGLE_CLOUD_PROJECT `
54
+ ** Gemini API on Vertex AI:** Set ` GOOGLE_GENAI_USE_VERTEXAI ` , ` GOOGLE_CLOUD_PROJECT `
55
55
and ` GOOGLE_CLOUD_LOCATION ` , as shown below:
56
56
57
57
``` bash
@@ -112,7 +112,7 @@ response = client.models.generate_content(
112
112
print (response.text)
113
113
```
114
114
115
- #### with uploaded file (Gemini API only)
115
+ #### with uploaded file (Gemini Developer API only)
116
116
download the file in console.
117
117
118
118
``` sh
@@ -317,6 +317,7 @@ The SDK will convert the list of parts into a content with a `user` role
317
317
```
318
318
319
319
##### Mix types in contents
320
+
320
321
You can also provide a list of ` types.ContentUnion ` . The SDK leaves items of
321
322
` types.Content ` as is, it groups consecutive non function call parts into a
322
323
single ` types.UserContent ` , and it groups consecutive function call parts into
0 commit comments