I’m using Nodejs to run GenerativeAI with Gemini 1.5 Flash every seconds.
Now I get this error shows up: Error: GoogleGenerativeAIResponseError: [GoogleGenerativeAI Error]: Candidate was blocked due to SAFETY
I had same experience. You need to check the prompt that causes this or the system instruction that trigger this. If you think that it should not be blocked then you can change the safety settings, you might want to check this