File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def generate_content(output_uri: str) -> str:
26
26
# output_uri = f"bq://your-project.your_dataset.your_table"
27
27
28
28
job = client .batches .create (
29
+ # 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}
29
31
model = "gemini-2.0-flash-001" ,
30
32
src = "bq://storage-samples.generative_ai.batch_requests_for_multimodal_input" ,
31
33
config = CreateBatchJobConfig (dest = output_uri ),
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def generate_content(output_uri: str) -> str:
26
26
27
27
# See the documentation: https://googleapis.github.io/python-genai/genai.html#genai.batches.Batches.create
28
28
job = client .batches .create (
29
+ # 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}
29
31
model = "gemini-2.0-flash-001" ,
30
32
# Source link: https://storage.cloud.google.com/cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl
31
33
src = "gs://cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl" ,
You can’t perform that action at this time.
0 commit comments