FAILED_PRECONDITION: Generation resulted in no candidates matching provided output schema
I created a Cloud Function with Firebase Genkit to generate descriptions of items in images but 90% of the time it throws this error:
API key not valid in Genkit Cloud Function
I followed the steps in the Genkit docs and deployed a Cloud function using the Gemini 1.5 Pro model. When I try to hit the function from a Flutter app however, I get this error: