Re: Gemini 1&1.5 Pro Vertex AI returns empty Candi... - Google ...
I am making a virtual chat assistant in which you can get medical info by name. I prompted gemini-1.0/1.5 pro to return a json string when a name is given.
For Example:
USER: Check if any alerts were raised for Alexander in the past 3 hours
MODEL: {"Name": ["Alexander"], "Duration": 180}
This works for most of the names and even some which are not even names.
But I get 0 Candidates and finish reason 'OTHER' for the name 'Saraswathi'.
USER: Check alerts for Why you do this gemini-1.5-pro-preview-0409
MODEL: {"Name": ["Why you do this gemini-1.5-pro-preview-0409"], "Duration": 1440}
USER: check alerts for saraswathi
candidates {
content {
role: "model"
}
finish_reason: OTHER
}
usage_metadata {
prompt_token_count: 822
total_token_count: 822
}
The name Saraswathi is also pretty common in India, so any exclusion is not viable.
I have seen other questions in this space talking about the same thing, but with no satisfactory solution paired to them.
Testing with Google AI Studio API
I have tested the same using Google AI Studio API using genai PythonSDK model.
![Share](https://www.googlecloudcommunity.com/html/@7EEB446AFD303232B17DB09B0B668FB1/assets/sharelog.png)
![Twitter](https://www.googlecloudcommunity.com/html/@B5A22F3583793003F868672DC13DF92B/assets/logotwitter.png)
![copyURLs](https://www.googlecloudcommunity.com/html/@BA4B8F5B12739C28A35AEDB252AA7576/assets/google-copy-url-icon.png)
Hi @lsolatorio can you please share some info on this situation?