Skip to content

Commit 7f1cc22

Browse files
holtskinnercopybara-github
authored andcommitted
docs: Use consistent terminology for Gemini Developer API and Vertex AI
PiperOrigin-RevId: 738049412
1 parent 2ac5129 commit 7f1cc22

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Google Gen AI Python SDK provides an interface for developers to integrate Googl
1111

1212
## Installation
1313

14-
```cmd
14+
```sh
1515
pip install google-genai
1616
```
1717

@@ -42,16 +42,16 @@ client = genai.Client(
4242
**(Optional) Using environment variables:**
4343

4444
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.
4747

48-
**ML Dev Gemini API:** Set `GOOGLE_API_KEY` as shown below:
48+
**Gemini Developer API:** Set `GOOGLE_API_KEY` as shown below:
4949

5050
```bash
5151
export GOOGLE_API_KEY='your-api-key'
5252
```
5353

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`
5555
and `GOOGLE_CLOUD_LOCATION`, as shown below:
5656

5757
```bash
@@ -112,7 +112,7 @@ response = client.models.generate_content(
112112
print(response.text)
113113
```
114114

115-
#### with uploaded file (Gemini API only)
115+
#### with uploaded file (Gemini Developer API only)
116116
download the file in console.
117117

118118
```sh
@@ -317,6 +317,7 @@ The SDK will convert the list of parts into a content with a `user` role
317317
```
318318

319319
##### Mix types in contents
320+
320321
You can also provide a list of `types.ContentUnion`. The SDK leaves items of
321322
`types.Content` as is, it groups consecutive non function call parts into a
322323
single `types.UserContent`, and it groups consecutive function call parts into

0 commit comments

Comments
 (0)