Skip to content

Commit ddb30bd

Browse files
authored
Updates code samples to use gemini 2.5 flash instead of gemini 2.0 flash (#13509)
1 parent 2d0bb80 commit ddb30bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

genai/batch_prediction/batchpredict_with_bq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def generate_content(output_uri: str) -> str:
2828
job = client.batches.create(
2929
# To use a tuned model, set the model param to your tuned model using the following format:
3030
# model="projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
31-
model="gemini-2.0-flash-001",
31+
model="gemini-2.5-flash",
3232
src="bq://storage-samples.generative_ai.batch_requests_for_multimodal_input",
3333
config=CreateBatchJobConfig(dest=output_uri),
3434
)

genai/batch_prediction/batchpredict_with_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def generate_content(output_uri: str) -> str:
2828
job = client.batches.create(
2929
# To use a tuned model, set the model param to your tuned model using the following format:
3030
# model="projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
31-
model="gemini-2.0-flash-001",
31+
model="gemini-2.5-flash",
3232
# Source link: https://storage.cloud.google.com/cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl
3333
src="gs://cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl",
3434
config=CreateBatchJobConfig(dest=output_uri),

0 commit comments

Comments
 (0)