Skip to content

Commit a215a7d

Browse files
updating testing files
1 parent 01b6d2a commit a215a7d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

generative_ai/model_garden/claude_3_batch_prediciton_bq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
output_uri = "bq://storage-samples.generative_ai.gen_ai_batch_prediction.predictions"
1919

2020

21-
def batch_predict_gemini_createjob(output_uri: str) -> str:
21+
def batch_predict_createjob(output_uri: str) -> str:
2222
"""Perform batch text prediction using a Gemini AI model and returns the output location"""
2323

2424
# [START generativeaionvertexai_batch_predict_anthropic_gemini_createjob_bigquery]
@@ -68,4 +68,4 @@ def batch_predict_gemini_createjob(output_uri: str) -> str:
6868

6969

7070
if __name__ == "__main__":
71-
batch_predict_gemini_createjob(output_uri)
71+
batch_predict_createjob(output_uri)

generative_ai/model_garden/claude_3_batch_prediction_gcs.py

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

1818
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")
1919

20-
output_uri = "gs://python-docs-samples-tests"
20+
output_uri = "gs://kellysun-test-project-europe-west1"
2121

2222

2323
def batch_predict_createjob(output_uri: str) -> str:

generative_ai/model_garden/noxfile_config.py

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

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11", "3.12"],
25+
"ignored_versions": ["2.7", "3.7", "3.8", "3.10", "3.11"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": True,

generative_ai/model_garden/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pillow==10.3.0; python_version < '3.8'
55
pillow==10.3.0; python_version >= '3.8'
66
google-cloud-aiplatform[all]==1.71.0
77
sentencepiece==0.2.0
8-
google-auth==2.38.0
8+
google-auth==2.29.0
99
anthropic[vertex]==0.28.0
1010
langchain-core==0.2.33
1111
langchain-google-vertexai==1.0.10

generative_ai/model_garden/test_model_garden_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")
3232

3333
INPUT_BUCKET = "kellysun-test-project-europe-west1"
34-
OUTPUT_BUCKET = "python-docs-samples-tests"
34+
OUTPUT_BUCKET = "kellysun-test-project-europe-west1"
3535
OUTPUT_PATH = "batch/batch_text_predict_output"
36-
GCS_OUTPUT_PATH = "gs://python-docs-samples-tests/"
36+
GCS_OUTPUT_PATH = "gs://kellysun-test-project-europe-west1/"
3737
OUTPUT_TABLE = f"bq://{PROJECT_ID}.gen_ai_batch_prediction.predictions"
3838

3939

@@ -86,7 +86,7 @@ def test_generate_text() -> None:
8686
def test_batch_gemini_predict_gcs(output_folder: pytest.fixture()) -> None:
8787
output_uri = "gs://python-docs-samples-tests"
8888
job = _main_test(
89-
test_func=lambda: claude_3_batch_prediction_gcs.batch_predict_gemini_createjob(
89+
test_func=lambda: claude_3_batch_prediction_gcs.batch_predict_createjob(
9090
output_uri
9191
)
9292
)
@@ -96,7 +96,7 @@ def test_batch_gemini_predict_gcs(output_folder: pytest.fixture()) -> None:
9696
def test_batch_gemini_predict_bigquery(output_folder: pytest.fixture()) -> None:
9797
output_uri = f"bq://{PROJECT_ID}.gen_ai_batch_prediction.predictions"
9898
job = _main_test(
99-
test_func=lambda: claude_3_batch_prediciton_bq.batch_predict_gemini_createjob(
99+
test_func=lambda: claude_3_batch_prediciton_bq.batch_predict_createjob(
100100
output_uri
101101
)
102102
)

0 commit comments

Comments
 (0)