Constantly Errors when Chatting

I’m trying to make a Pets Go game, and I need to use Google’s AI Studio to do it because Gemini breaks whenever I ask a simple thing about the project, but Google AI Studio as of recently started erroring out whenever I have it generate the full code. “Something went wrong” “An error occurred when generating” etc.

I’ve had to keep regenerating responses because of this, and it’s making me excessively use my quota for it. I haven’t exceeded the quota so it hasn’t been an urgent issue, but it is still incredibly annoying.

This issue still occurs, and it’s really annoying.

The issue still occurs. It does not happen with large chats that have big token counts, it happens when I ask it to generate a lot of code at once.

Hi,

I would recommend giving detailed step by step instructions in prompt to get better results. As more precise and step by step instructions help models perform better.