Skip to content

Commit d3930e2

Browse files
committed
feat(genai): update GenAI SDK version and Gemini Model name
1 parent b36614a commit d3930e2

File tree

24 files changed

+24
-24
lines changed

24 files changed

+24
-24
lines changed

genai/batch_prediction/batchpredict_with_bq.py

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

2828
job = client.batches.create(
2929
# To use a tuned model, set the model param to your tuned model using the following format:
30-
# model="projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
30+
# model = "projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
3131
model="gemini-2.5-flash",
3232
src="bq://storage-samples.generative_ai.batch_requests_for_multimodal_input",
3333
config=CreateBatchJobConfig(dest=output_uri),

genai/batch_prediction/batchpredict_with_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def generate_content(output_uri: str) -> str:
2727
# See the documentation: https://googleapis.github.io/python-genai/genai.html#genai.batches.Batches.create
2828
job = client.batches.create(
2929
# To use a tuned model, set the model param to your tuned model using the following format:
30-
# model="projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
30+
# model = "projects/{PROJECT_ID}/locations/{LOCATION}/models/{MODEL_ID}
3131
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",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0
22
pillow==11.1.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0

genai/embeddings/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-genai==1.20.0
1+
google-genai==1.27.0

genai/image_generation/imggen_mmflash_edit_img_with_txt_img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_content() -> str:
2626
image = Image.open("example-image.png")
2727

2828
response = client.models.generate_content(
29-
model="gemini-2.0-flash-exp",
29+
model="gemini-2.0-flash-preview-image-generation",
3030
contents=[image, "Edit this image to make it look like a cartoon."],
3131
config=GenerateContentConfig(response_modalities=[Modality.TEXT, Modality.IMAGE]),
3232
)

0 commit comments

Comments
 (0)