@@ -39,16 +39,16 @@ Use the policy in scenarios such as the following:
39
39
40
40
``` xml
41
41
<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 >
52
52
</llm-content-safety >
53
53
```
54
54
@@ -85,13 +85,13 @@ Use the policy in scenarios such as the following:
85
85
## Usage
86
86
87
87
- [ ** 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
89
89
- [ ** Gateways:** ] ( api-management-gateways-overview.md ) classic, v2, consumption, self-hosted, workspace
90
90
91
91
### Usage notes
92
92
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.
95
95
* This policy can be used multiple times per policy definition.
96
96
97
97
## Example
0 commit comments