Skip to content

Commit 6d9437f

Browse files
committed
DocuMentor: Changes for danlep-patch-637793
1 parent cfab675 commit 6d9437f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Use the policy in scenarios such as the following:
6161
| -------------- | ----------------------------------------------------------------------------------------------------- | -------- | ------- |
6262
| backend-id | Identifier (name) of the Azure AI Content Safety backend to route content-safety API calls to. Policy expressions are allowed. | Yes | N/A |
6363
| shield-prompt | If set to `true`, check content for user attacks. Otherwise, skip this check. Policy expressions are allowed. | No | `false` |
64-
| enforce-on-completions| If set to `true`, enforce content safety checks on chat completions for response validation. Otherwise, skip this check. When you set the policy in the outbound section, this attribute is ignored. Policy expressions are allowed. | No | `false` |
64+
| enforce-on-completions| If set to `true` when you set the policy in the inbound section for content safety checks on requests, enforce content safety checks also on chat completions for response validation. When you set the policy in the outbound section for content safety checks on responses, this attribute is ignored. Policy expressions are allowed. | No | `false` |
6565
| window-size | The size of text windows in characters that the policy sends to Azure AI Content Safety for evaluation. If you don't specify a value, the entire content is sent as one window. Policy expressions are allowed. | No | N/A |
6666
| window-overlap-size | The size of overlaps in characters between text windows when the content is split by using the `window-size` attribute. If you don't specify a value, windows don't overlap. Policy expressions are allowed. | No | N/A |
6767

@@ -96,6 +96,7 @@ Use the policy in scenarios such as the following:
9696

9797
### Usage notes
9898

99+
* Configure the policy in the inbound section to check requests and/or in the outbound section to check responses.
99100
* Unless you specify `window-size`, the policy runs on a concatenation of all text content in a completion or chat completion request or response. If you specify `window-size`, the policy runs on windows of text content with the specified size and overlaps.
100101
* If the request or response exceeds the character limit of Azure AI Content Safety, the policy returns a `403` error.
101102
* You can use this policy multiple times per policy definition.

0 commit comments

Comments
 (0)