An Azure service that enables users to identify content that is potentially offensive, risky, or otherwise undesirable. Previously known as Azure Content Moderator.
Hello @dw-eastwind ,
Welcome to Microsoft Q&A .Thank you for reaching out to us.
The behavior described aligns with Azure OpenAI’s built-in content filtering system, which evaluates both prompts and completions against responsible AI safety categories
In this case, the request has most likely been classified under the “medium” severity. By default, Azure OpenAI blocks medium and high severity content, which results in an HTTP 400 response with content_filter and ResponsibleAIPolicyViolation. This can occasionally occur in legitimate industrial or procurement scenarios when product or chemical terminology overlaps with safety-sensitive patterns.
Content filtering acts as a platform-level safety enforcement layer, not a relevance-based system.
Key points:
- Content is evaluated across predefined harm categories with severity levels (safe, low, medium, high)
- Medium and high severity classifications are blocked by default
- Classification is based on detected patterns, not business intent or context
- Industrial safety or chemical-related terminology may sometimes trigger conservative classification
A supported way to reduce false positives is available through content filter configuration.
- Creation of custom content filter configurations
- Adjustment of severity thresholds per category (Low / Medium / High)
- Association of configurations with specific deployments
Setting a category threshold to “High” ensures that:
- Low and medium severity content is allowed
- Only high-severity content is blockedA supported way to reduce false positives is available through content filter configuration.
- Creation of custom content filter configurations
- Adjustment of severity thresholds per category (Low / Medium / High)
- Association of configurations with specific deployments
- Low and medium severity content is allowed
- Only high-severity content is blocked
Please note that
Advanced modes such as:
- “No filters”
- “Annotate only”
Require approval through the Limited Access Review process and core safety protections remain enforced even when configurations are adjusted
Please check if the following steps help-
- Applying configuration tuning
- Identify flagged category from content_filter_result
- Create or update content filter
- Set affected category threshold to High
- Apply to the relevant deployment
- Improving query structure
- Add contextual framing:
- “industrial safety monitoring equipment”
- “workplace compliance device”
- Avoid isolated chemical/product terms without context
- Add contextual framing:
- Use retrieval-first architecture
- Perform product lookup via:
- Catalog / SKU / search system
- Use the model only for:
- Summarization
- Response formatting
- Perform product lookup via:
- Implementing fallback handling
- Detect content_filter responses
- Avoid repeated retries
- Route to:
- catalog-based lookup
- simplified queries
- Monitoring and refining
- Log content_filter_result
- Identify recurring triggers
- Adjust preprocessing patterns iteratively
The following references might be helpful , please check them out
- Content filtering for Microsoft Foundry Models (classic) - Microsoft Foundry (classic) portal | Microsoft Learn
- Configure content filters (classic) - Microsoft Foundry (classic) portal | Microsoft Learn
Please let us know if the response was helpful
Thank you