Gemini 1.5 flash prompt blocking

I am trying to make a request where I prompt a video file alongside instructions on how I expect the output to look like. Initially, I had gotten the output I expected but for the past 24 hours all requests I make with pretty much the same prompt fail. I even tweaked the prompts but my prompts keep getting blocked. Here’s the error I get:

Error calling Gemini API: Invalid operation: The `response.parts` quick accessor requires a single candidate, but none were returned. Please check the `response.prompt_feedback` to determine if the prompt was blocked.

Also my reponse.prompt_feedback gives me this block_reason: OTHER. I have also followed the proposed solutions here by specifying my safety settings but I still face same issue. I still get blocked which makes me wonder whats the entire point of them. I also generated a new API key however I am still met with same issue which is quite frustrating.

Btw my prompts do not suggest any kind of content that deserve any sort of prompt blocking so I am confused.

I will appreciate pointers to a solution for this prompt blocking issue.

A block reason or finish reason of OTHER is probably the most confusing reply, and Google has not been very forthcoming. Here’s what we know:

  • This is not something that you can resolve by changing the safety settings.
  • This is supposed to indicate things like gross safety violations that Google could get in trouble for if it processed the request.
  • We’ve seen it flag this for languages it doesn’t understand (and even sometimes languages it does understand) where the word is close to an English word that might not be allowed.

The best you can do if you feel this is in error is to report it using Send Feedback with details. You can try to adjust your prompt to emphasize that this is safe - but chances are low.