Skip to content

Commit f549707

Browse files
author
gitName
committed
review comments
1 parent 7b283f3 commit f549707

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ Use the policy in scenarios such as the following:
3939

4040
```xml
4141
<llm-content-safety backend-id="name of backend entity" shield-prompt="true | false" >
42-
<categories output-type="FourSeverityLevels | EightSeverityLevels">
43-
<category name="Hate | SelfHarm | Sexual | Violence" threshold="integer" />
44-
<!-- If there are multiple categories, add more category elements -->
45-
[...]
46-
</categories>
47-
<blocklists>
48-
<id>blocklist-identifier</id>
49-
<!-- If there are multiple blocklists, add more id elements -->
50-
[...]
51-
</blocklists>
42+
<categories output-type="FourSeverityLevels | EightSeverityLevels">
43+
<category name="Hate | SelfHarm | Sexual | Violence" threshold="integer" />
44+
<!-- If there are multiple categories, add more category elements -->
45+
[...]
46+
</categories>
47+
<blocklists>
48+
<id>blocklist-identifier</id>
49+
<!-- If there are multiple blocklists, add more id elements -->
50+
[...]
51+
</blocklists>
5252
</llm-content-safety>
5353
```
5454

@@ -85,13 +85,13 @@ Use the policy in scenarios such as the following:
8585
## Usage
8686

8787
- [**Policy sections:**](./api-management-howto-policies.md#sections) inbound
88-
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, workspace, product, API, operation
88+
- [**Policy scopes:**](./api-management-howto-policies.md#scopes) global, workspace, product, API
8989
- [**Gateways:**](api-management-gateways-overview.md) classic, v2, consumption, self-hosted, workspace
9090

9191
### Usage notes
9292

93-
* The policy runs on a concatenation of all text content in the request.
94-
* If the request exceeds the character limit of Azure AI Content Safety, or an internal error occurs, a `500` error is returned.
93+
* The policy runs on a concatenation of all text content in a completion or chat completion request.
94+
* If the request exceeds the character limit of Azure AI Content Safety, a `403` error is returned.
9595
* This policy can be used multiple times per policy definition.
9696

9797
## Example

0 commit comments

Comments
 (0)