Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gemini API finishReason RECITATION

Hi all,

I use Gemini through its API on https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent

I sometimes get 0 candidates, with a finishReason = RECITATION.

What should be the parameters in the POST query if I dont want it to stop for that reason but still answer?

I see that there is a Github Issue about that, here: https://github.com/google/generative-ai-docs/issues/257

Thank you!

8 16 19.7K
16 REPLIES 16