Gemini flash 2.0 API sometimes would stop outputting (paused)

I believe I found out why this is happening

https://discuss.ai.google.dev/t/gemini-2-0-flash-has-a-weird-bug/65119/20?u=isaac_koczwara

TLDR: set the temperature to 1.0