An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.
Hello Teah Rota,
Thanks for sharing the details. I understand this can be confusing, especially when safe requests are getting blocked.
What is happening
The 400 error you are seeing is coming from the built-in content filtering system of Azure OpenAI.
Every request you send is checked by this system before the model gives a response. It checks for categories like harmful or sensitive content.
If the system thinks the content may not be safe at a certain level, it blocks the request and returns a 400 error. [support.claude.com]
Why safe requests are getting blocked
This can happen even if your input looks normal.
Some common reasons:
- The wording in the prompt is ambiguous and can be interpreted differently
- Your data source contains hidden or sensitive phrases
- The model predicts a response that could violate policy
- The filter is conservative by default, so it sometimes blocks safe inputs
This is called a false positive and can happen occasionally with content filtering systems.
Things you can try
Here are a few practical steps that usually help:
First, simplify and rephrase the prompt Try making the prompt clearer and more direct. Avoid complex or mixed language that could be misunderstood.
Second, add more context Explain clearly what you are trying to do For example, mention that the content is business data or a transcript and you want a summary
Third, clean the input data If you are sending large text like logs or transcripts, remove unnecessary or sensitive words if possible Even a small phrase can trigger the filter
Fourth, test small inputs Try sending smaller test prompts to identify which part of your content is causing the issue
Fifth, check your content filter settings If you are using custom content filters, review the configuration Sometimes filters are set to strict levels and block more than expected
Important point to know
Content filtering in Azure OpenAI is always enabled and cannot be fully turned off. It is applied to all requests to ensure responsible AI usage.
Reference
You can learn more about how content filtering works here: Understanding Azure OpenAI content filtering
Simple summary
- This error is due to content filtering
- Safe inputs can sometimes be blocked due to false positives
- Rephrasing prompts and cleaning input usually helps
I Hope this helps. Do let me know if you have any further queries.
Thankyou!