Help Needed: "GoogleGenerativeAI Error" - Token Count Exceeds Limit

@Saif, thank you very much for your detailed report.
After checking, I was able to reproduce the issue you are experiencing and identify the cause and solution.
I have added the cause and additional steps to my article, but I will also quote the added sections here.

Explanation > ** /home/user/.idx/ai folder** > capra-context-state.json

How to reduce past conversation history contained in input tokens > Procedure > Step 7

Causion

Please do not delete the entire JSON or any items other than app-prototyping-agent: edit-app-agent: [<here>] from capra-context-state.json.
If you do this, the App Prototyping Agent may mistakenly recognize existing workspace as new workspace and attempt to recreate App Blueprint.

2 Likes