Skip to content

Commit dd56ba2

Browse files
committed
fix(genai): error
1 parent 16c6ebc commit dd56ba2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

genai/batch_prediction/batchpredict_with_bq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_content(output_uri: str) -> str:
2626
# output_uri = f"bq://your-project.your_dataset.your_table"
2727

2828
job = client.batches.create(
29-
model="gemini-2.5-flash-preview-05-20",
29+
model="gemini-2.0-flash-001",
3030
src="bq://storage-samples.generative_ai.batch_requests_for_multimodal_input",
3131
config=CreateBatchJobConfig(dest=output_uri),
3232
)

genai/batch_prediction/batchpredict_with_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_content(output_uri: str) -> str:
2626

2727
# See the documentation: https://googleapis.github.io/python-genai/genai.html#genai.batches.Batches.create
2828
job = client.batches.create(
29-
model="gemini-2.5-flash-preview-05-20",
29+
model="gemini-2.0-flash-001",
3030
# Source link: https://storage.cloud.google.com/cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl
3131
src="gs://cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl",
3232
config=CreateBatchJobConfig(dest=output_uri),

0 commit comments

Comments
 (0)