Skip to content

Commit c1c6df7

Browse files
yyyu-googlecopybara-github
authored andcommitted
docs: replace vertexai with enterprise in Client instantiation
PiperOrigin-RevId: 918665804
1 parent 161f8e4 commit c1c6df7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ from google import genai
5757

5858
# Only run this block for Vertex AI API
5959
client = genai.Client(
60-
vertexai=True, project='your-project-id', location='us-central1'
60+
enterprise=True, project='your-project-id', location='us-central1'
6161
)
6262
```
6363

@@ -156,7 +156,7 @@ To explicitly close the async client:
156156
from google.genai import Client
157157

158158
aclient = Client(
159-
vertexai=True, project='my-project-id', location='us-central1'
159+
enterprise=True, project='my-project-id', location='us-central1'
160160
).aio
161161
response_1 = await aclient.models.generate_content(
162162
model=MODEL_ID,
@@ -220,7 +220,7 @@ from google import genai
220220
from google.genai import types
221221

222222
client = genai.Client(
223-
vertexai=True,
223+
enterprise=True,
224224
project='your-project-id',
225225
location='us-central1',
226226
http_options=types.HttpOptions(api_version='v1')
@@ -287,7 +287,7 @@ You may pass the custom base url like this:
287287

288288
```python
289289
client = Client(
290-
vertexai=True,
290+
enterprise=True,
291291
http_options=types.HttpOptionsDict(
292292
base_url='https://test-api-gateway-proxy.com',
293293
base_url_resource_scope=types.ResourceScope.COLLECTION,

0 commit comments

Comments
 (0)