GenkitG
Genkitโ€ข2y agoโ€ข
7 replies
rubber-blue

Hey I am currently using Genkit to

Hey I am currently using Genkit to return a JSON based on a (complex) zod object. When ever I run the flow I sometimes get following error:
FAILED_PRECONDITION: Generation resulted in no candidates matching provided output schema.

But looking into the traces, I can see that the API call was successful ant that the json it outputs valid is. Is this a bug or am I doing something wrong? I tried to change the prompt and the zod schema but I still see that the json is valid most of the times.
Is the schema output limit in size or anyother thing?
Was this page helpful?