i have been building an application on firebase studio using Gemini for UI design but a day back it suddenly started showing this message for what ever prompt even for a simple hi " Sorry, I hit a snag. Please try again shortly or modify your prompt.
[GoogleGenerativeAI Error]: Error fetching from https://monospace-pa.googleapis.com/v1/models/gemini-2.5-pro-preview-03-25:streamGenerateContent?alt=sse: [400 Bad Request] The input token count (1591447) exceeds the maximum number of tokens allowed (1048575)." how to resolve this please i am in an urgent to complete the project.
Did you try to reset the VM?
yes i have restarted the VM but still the error persists