Hi, everyone!
I’m trying to use Batch Prediction, following the guide
I receive an error:
The PublisherModel gemini-2.0-flash-001 does not exist, or may have been moved. Please try to search for the model in Model Garden
I know:
- I authorized to Google via:
gcloud auth application-default login
- I’m 100% sure, that this model exist in the Garden.
- I have activated following APIs: Activated Google APIs
- I used following snippet to create a Client instance:
gemini_client = genai.Client(
vertexai=True,
http_options=HttpOptions(api_version="v1"),
project=bigquery_client.project,
location=bigquery_client.location
)
output_table = f"{input_table.project}.{input_table.dataset_id}.ai_response__{int(dt.datetime.now().timestamp())}"
job = gemini_client.batches.create(
model=gemini.name,
src=f"bq://{input_table.project}.{input_table.dataset_id}.{input_table.table_id}",
config=CreateBatchJobConfig(dest=f"bq://{output_table}"),
)
It might be important point, but I use
europe-west2
(London) region, but within the guide there is no any limitations on region to use.
Do you have any ideas why I can’t find the model and use this approach?