Skip to content

Commit 56ad4a4

Browse files
author
gitName
committed
policy GA
1 parent 9e1a4f5 commit 56ad4a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

articles/api-management/llm-content-safety-policy.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,22 @@ ms.service: azure-api-management
88
ms.collection: ce-skilling-ai-copilot
99
ms.custom:
1010
ms.topic: article
11-
ms.date: 02/06/2025
11+
ms.date: 03/04/2025
1212
ms.author: danlep
1313
---
1414

1515
# Enforce content safety checks on LLM requests
1616

1717
[!INCLUDE [api-management-availability-premium-dev-standard-basic-premiumv2-standardv2-basicv2](../../includes/api-management-availability-premium-dev-standard-basic-premiumv2-standardv2-basicv2.md)]
1818

19-
The `llm-content-safety` policy enforces content safety checks on LLM requests (prompts) by transmitting them to the [Azure AI Content Safety](/azure/ai-services/content-safety/overview) service before sending to the backend LLM. When enabled and Azure AI Content Safety detects malicious content, API Management blocks the request and returns a `403` error code.
19+
The `llm-content-safety` policy enforces content safety checks on large language model (LLM) requests (prompts) by transmitting them to the [Azure AI Content Safety](/azure/ai-services/content-safety/overview) service before sending to the backend LLM API. When the policy is enabled and Azure AI Content Safety detects malicious content, API Management blocks the request and returns a `403` error code.
2020

2121
Use the policy in scenarios such as the following:
2222

2323
* Block requests that contain predefined categories of harmful content or hate speech
2424
* Apply custom blocklists to prevent specific content from being sent
2525
* Shield against prompts that match attack patterns
2626

27-
> [!NOTE]
28-
> Currently, this policy is in preview.
29-
3027
[!INCLUDE [api-management-policy-generic-alert](../../includes/api-management-policy-generic-alert.md)]
3128

3229
## Prerequisites

0 commit comments

Comments
 (0)