Gemini 2.5 returns empty response despite finish reason = STOP

Hi,

When asking a question, it sometimes doesnt given any response. It doesnt happen all the time, but it happens in a few cases. So hard to reproduce as well.

But not sure whats the cause since it doesnt raise an error as well.

I have also noticed that this is an issue shared in Github as well: LiveKit Google Plugin: Gemini 2.5 Flash returns empty candidates despite STOP finish reason · Issue #1394 · googleapis/python-genai · GitHub

Is there any current fix for this ?