Getting [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] Request contains an invalid argument

Hi, I’m sorry for the trouble this is causing, the team are working hard on this one, it looks like we have a fix that should be rolling out soon! In the meantime the Temporary Workaround seems to be helping quite a lot of developers Temporary workaround for error due to exceeding input token count (unofficial) - #31 by jovejunior

1 Like