Snap error: Sorry, I hit a snag. Please try again shortly or modify your prompt

how can i fix this error?

[GoogleGenerativeAI Error]: Error fetching from https://monospace-pa.googleapis.com/v1/models/gemini-2.5-pro:streamGenerateContent?alt=sse: [400 Bad Request] The input token count (1095087) exceeds the maximum number of tokens allowed (1048576).

yeah we are getting same error even after doing /clear