1,006 questions
1
vote
0
answers
50
views
How to ensure default values in Gemini/Vertex structured output?
When sending a prompt with a schema/json schema, I'd like to ensure that some values would be always present with a default if they are not mentioned in the prompt.
Both Gemini API and Vertex API ...
0
votes
1
answer
306
views
How to allow for multiple images to be created from a single API call using gemini?
I am currently have a tool that uses Gemini-2.5-flash-image to generate images. However, I am only getting 1 image to be generated. I want the model to create multiple images for example 3 images at ...
0
votes
1
answer
60
views
Vertex AI Agent Builder/Dialogflow CX: Cannot Set ID Key Property for BigQuery Data Store (UI Issue?) - Search Fails for IDs
I'm trying to connect a BigQuery table containing property listings (originally from an Excel/CSV file) to a Vertex AI Agent Builder / Dialogflow CX agent using a Structured Data Store. My goal is to ...
0
votes
1
answer
85
views
Critical: Persistent API_KEY_INVALID (400 Bad Request) from both Apps Script and Node.js using Google AI Studio API [closed]
I am facing a critical authentication issue where a newly generated Google AI Studio API key consistently fails with a 400 API_KEY_INVALID error, both from Google Apps Script and a standard Node.js ...
0
votes
1
answer
118
views
"Configuration is not authorized" when integrating AI search app widget into Flask application
I would like to integrate GCP Vertex AI application widget into my web application.
Until now, I have done the following steps:
I created an AI application.
I headed to the "Integration" ...
0
votes
1
answer
179
views
VertexAI Agent Engine Multimodal query using REST API
I deployed an adk agent to agent engine and I'm trying to send multimodal queries to it. I need to send text, image and voice to the agent but nothing makes it work. The documentation is awful and ...
0
votes
0
answers
59
views
GCP Vertex AI Model Training
Training failed to run
For the first time, I got an error in the training pipeline, and I cleared it. When I tried for the second time, it gave the error attached as a PNG.
What could be the reason, ...
0
votes
0
answers
43
views
Error while starting training on VertexAI
I am trying to start a new machine learning training process on VertexAI. I am following a guide using a Colab Notebook to create the training file and start running the training. However, when ...
0
votes
1
answer
171
views
Persistent 404 NOT_FOUND Error on Vertex AI Gemini Call Despite Correct Configuration
I'm consistently receiving a 404 NOT_FOUND error when trying to call the gemini-1.0-pro model in the us-central1 region.
{
"error": { "code": 404, "message": "...
-1
votes
1
answer
153
views
Cannot access chat editor in Google AI Studio; buttons are blocked [closed]
Problem Description:
I am experiencing an access issue with my Google AI Studio account. I cannot access the chat editor feature or my project history. The buttons for these functionalities are ...
0
votes
1
answer
151
views
How to pass fps metadata to gemini_model.generate_content?
I currently have code that uses the Google Gemini developer API to build a request and send that request to a gemini-2.5-flash model. The request includes a video with metadata specifying a Frames Per ...
0
votes
1
answer
395
views
Vertex AI `gcloud ai models list` returns "Listed 0 items" on a fully activated project
I am trying to access Gemini models via the Vertex AI API but am unable to see any publisher models in my project.
Project ID: virio-462215
The Core Problem:
When I run the command gcloud ai models ...
0
votes
0
answers
215
views
How to set response modalities correctly in GenerationConfig.Builder
Querying gemini-2.0-flash-preview-image-generation API requires specifying both TEXT and IMAGE as a response modality via GenerationConfig.Builder, but I see no documentation as to how to do so using ...
0
votes
1
answer
73
views
Dataset from generator in tensorflow error GetNextFromShard
I have a train step for a Vertex AI pipeline that uses a template code for setting up distributed training. When fitting any model I get a message in the first epoch indicating the following message:
...
0
votes
0
answers
131
views
Can't get a real response from Vertex AI on Cloud Run
I'm new to Vertex AI/hosting things on Cloud Run.
I went to Prompt management, created a prompt, and clicked Build with code. Now my prompt is hosted on Google run in a Gradio app.
When I go to the ...
1
vote
0
answers
514
views
Vertex AI Agent Deployment Fails with ModuleNotFoundError: No module named 'data_science'
Context
I'm trying to deploy a custom multi-agent app on Vertex AI Reasoning Engine (using Google ADK / Agent Builder). I'm using a .whl file that includes my entire custom agent code, organized under ...
0
votes
0
answers
62
views
Vertex AI Batch Prediction Job Fails with "no valid instances found in input file" for AutoML Video Object Tracking
I am encountering a persistent and frustrating issue while trying to perform a batch prediction job on a Google Vertex AI AutoML Video Object Tracking model. My model is deployed in us-central1, and I ...
2
votes
1
answer
697
views
Error trying to use "gemini-2.5-pro-preview-06-05" in Firebase Vertex AI
I'm using Vertex AI in an Angular project with Firebase.
The latest 2.5 Flash model works.
const model = getGenerativeModel(this.vertexAI, { model: "gemini-2.5-flash-preview-05-20" });
But ...
0
votes
0
answers
57
views
How to have custom events on GCP vertex AI search
So I am using Vertex AI Search with my custom UI and I want to record user actions like clicking (thumbs up, thumbs down, or clicking on links returned in the search) and pass it to the model.
I need ...
0
votes
1
answer
174
views
Vertex AI batch prediction BigQuery output schema
How can I specify the output table schema for batch prediction jobs on Vertex AI (custom container)? Now it copies the columns from the input table and appends the prediction column even though the ...
1
vote
1
answer
245
views
What should be the correct format or value for the src argument to make batch predictions for Gemini work?
I need help with getting batch predictions for Gemini using Google Cloud API
I'm trying to run a batch prediction using the Gemini model via the Google Cloud API (following this official doc - https://...
0
votes
1
answer
213
views
How to filter the Google Vertex AI search to return pdf file only in advanced website indexing?
I'm using the Google Vertex AI search to index all our websites.
The index type is advanced website indexing.
I want to filter my search to only return .pdf file only.
According to the documentation ...
1
vote
0
answers
64
views
Preventing overlapping pipeline runs in Vertex AI Pipeline schedule when max_concurrent_run_count=1
I'm using Vertex AI Pipelines and scheduling runs via the Python SDK using a cron expression, for example:
pipeline_job_schedule = aiplatform.PipelineJobSchedule(...)
pipeline_job_schedule.create(
...
0
votes
0
answers
241
views
How to invoke a Gemini Fine tuned (via Vertex AI) model in Google ADK Agent
Problem Statement: I fine-tuned a google's gemini flash 2.0 model via GCP Vertex AI. But I am unable to invoke the endpoint of that fine-tuned model trained on my own data in the below agent.py. I ...
0
votes
1
answer
472
views
Google Conversational agent with Playbook and OpenAPI schema
I have created a simple playbook in Conversational agent. The instruction in the playbook is to connect to tool to search for products. The tool is configured with OpenAPI schema that points to Cloud ...