Skip to content

Commit f5d5a1a

Browse files
committed
feat(genai): migrate Vertex AI env var to Enterprise in advanced feature tests
1 parent 63efc78 commit f5d5a1a

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

genai/code_execution/test_codeexecution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import codeexecution_barplot_with_txt_img
1818
import codeexecution_cropimage_with_txt_img
1919

20-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
20+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
2121
os.environ["GOOGLE_CLOUD_LOCATION"] = "global" # "us-central1"
2222
# The project name is included in the CICD pipeline
2323
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/content_cache/test_content_cache_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import contentcache_use_with_txt
2222

2323

24-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
24+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
2525
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
2626
# The project name is included in the CICD pipeline
2727
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/live/test_live_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import live_with_txt
4343

4444

45-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
45+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
4646
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
4747
# The project name is included in the CICD pipeline
4848
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/model_optimizer/test_modeloptimizer_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import modeloptimizer_with_txt
1717

18-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
18+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
1919
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
2020
# The project name is included in the CICD pipeline
2121
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/provisioned_throughput/test_provisioned_throughput_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import provisionedthroughput_with_txt
2222

23-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
23+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
2424
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
2525
# The project name is included in the CICD pipeline
2626
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/tools/test_tools_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import tools_urlcontext_with_txt
3232
import tools_vais_with_txt
3333

34-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
34+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
3535
os.environ["GOOGLE_CLOUD_LOCATION"] = "us-central1"
3636
# The project name is included in the CICD pipeline
3737
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

0 commit comments

Comments
 (0)