File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ from google import genai
5757
5858# Only run this block for Vertex AI API
5959client = 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:
156156from google.genai import Client
157157
158158aclient = Client(
159- vertexai = True , project = ' my-project-id' , location = ' us-central1'
159+ enterprise = True , project = ' my-project-id' , location = ' us-central1'
160160).aio
161161response_1 = await aclient.models.generate_content(
162162 model = MODEL_ID ,
@@ -220,7 +220,7 @@ from google import genai
220220from google.genai import types
221221
222222client = 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
289289client = 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 ,
You can’t perform that action at this time.
0 commit comments