Skip to content

Commit 446db02

Browse files
feat(genai): migrate Vertex AI env var to Enterprise in core tests (GoogleCloudPlatform#14229)
1 parent 83792a4 commit 446db02

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

genai/controlled_generation/test_controlled_generation_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import ctrlgen_with_nullable_schema
2626
import ctrlgen_with_resp_schema
2727

28-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
28+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
2929
os.environ["GOOGLE_CLOUD_LOCATION"] = "global" # "us-central1"
3030
# The project name is included in the CICD pipeline
3131
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/count_tokens/test_count_tokens_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import counttoken_with_txt
2626
import counttoken_with_txt_vid
2727

28-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
28+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
2929
os.environ["GOOGLE_CLOUD_LOCATION"] = "global" # "us-central1"
3030
# The project name is included in the CICD pipeline
3131
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/safety/test_safety_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import safety_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"] = "global" # "us-central1"
2626
# The project name is included in the CICD pipeline
2727
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/text_generation/test_text_generation_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import textgen_with_youtube_video
4040
import thinking_textgen_with_txt
4141

42-
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True"
42+
os.environ["GOOGLE_GENAI_USE_ENTERPRISE"] = "True"
4343
os.environ["GOOGLE_CLOUD_LOCATION"] = "global" # "us-central1"
4444
# The project name is included in the CICD pipeline
4545
# os.environ['GOOGLE_CLOUD_PROJECT'] = "add-your-project-name"

genai/thinking/test_thinking_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import thinking_includethoughts_with_txt
1818
import thinking_with_txt
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"

0 commit comments

Comments
 (0)