Skip to content

Commit 5add740

Browse files
feat: from vertexai.batch_prediction import BatchPredictionJob (#12736)
* feat: from vertexai.batch_prediction import BatchPredictionJob * feat: from vertexai.batch_prediction import BatchPredictionJob
1 parent b1bee1a commit 5add740

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

generative_ai/batch_predict/gemini_batch_predict_gcs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
import os
1515

16-
from vertexai.preview.batch_prediction import BatchPredictionJob
16+
from vertexai.batch_prediction import BatchPredictionJob
1717

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

@@ -36,7 +36,7 @@ def batch_predict_gemini_createjob(
3636
import time
3737
import vertexai
3838

39-
from vertexai.preview.batch_prediction import BatchPredictionJob
39+
from vertexai.batch_prediction import BatchPredictionJob
4040

4141
# TODO(developer): Update and un-comment below lines
4242
# input_uri ="gs://[BUCKET]/[OUTPUT].jsonl" # Example
@@ -77,7 +77,6 @@ def batch_predict_gemini_createjob(
7777
# https://storage.googleapis.com/cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl
7878

7979
return batch_prediction_job
80-
8180
# [END generativeaionvertexai_batch_predict_gemini_createjob]
8281

8382

generative_ai/batch_predict/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pandas==2.0.3; python_version == '3.8'
33
pandas==2.1.4; python_version > '3.8'
44
pillow==10.3.0; python_version < '3.8'
55
pillow==10.3.0; python_version >= '3.8'
6-
google-cloud-aiplatform[all]==1.69.0
6+
google-cloud-aiplatform[all]==1.71.0
77
sentencepiece==0.2.0
88
google-auth==2.29.0
99
anthropic[vertex]==0.28.0

0 commit comments

Comments
 (0)