Rai Content Filters - List
List Content Filters types.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters?api-version=2023-10-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
Resource location. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
ListRaiContentFilters
Sample Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters?api-version=2023-10-01-preview
Sample Response
{
"value": [
{
"policyName": "Hate",
"description": "Multi-level filter for hate speech.",
"filterType": "MultiLevel"
},
{
"policyName": "Sexual",
"description": "Multi-level filter for sexual content.",
"filterType": "MultiLevel"
},
{
"policyName": "HateSpeechPatterns",
"description": "Global blocklist for hate speech.",
"filterType": "Switch"
}
]
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Rai |
Azure OpenAI Content Filter. |
Rai |
The list of Content Filters. |
Rai |
Content Filter type. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
RaiContentFilter
Azure OpenAI Content Filter.
Name | Type | Description |
---|---|---|
description |
string |
Description of Content Filter. |
filterType |
Content Filter type. |
|
policyName |
string |
Name of Content Filter. |
RaiContentFilterListResult
The list of Content Filters.
Name | Type | Description |
---|---|---|
nextLink |
string |
The link used to get the next page of Content Filters. |
value |
The list of RaiContentFilter. |
RaiContentFilterType
Content Filter type.
Name | Type | Description |
---|---|---|
MultiLevel |
string |
|
Switch |
string |