Stop Token? Gemini Pro 1.5 Flash spits same diffs and no stopping

What is the stopping token for Gemini pro1.5 and Flash, Maybe you can do something I really like Flash and 1.5 pro for coding but Flash has this issue a lot where diffs are the same it tells you to remove a line to just add it back again with no changes a lot of times