Rai Content Filters - List
Listeninhaltsfiltertypen.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters?api-version=2024-10-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
location
|
path | True |
string |
Ressourcenspeicherort. |
subscription
|
path | True |
string minLength: 1 |
Die ID des Zielabonnements. |
api-version
|
query | True |
string minLength: 1 |
Die API-Version, die für diesen Vorgang verwendet werden soll. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
OKAY. |
|
Other Status Codes |
Fehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist. |
Beispiele
ListRaiContentFilters
Beispielanforderung
Beispiel für eine Antwort
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Hate",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Hate",
"properties": {
"name": "Hate",
"isMultiLevelFilter": true
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Sexual",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Sexual",
"properties": {
"name": "Sexual",
"isMultiLevelFilter": true
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Violence",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Violence",
"properties": {
"name": "Violence",
"isMultiLevelFilter": true
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Selfharm",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Selfharm",
"properties": {
"name": "Selfharm",
"isMultiLevelFilter": true
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Jailbreak",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Jailbreak",
"properties": {
"name": "Jailbreak",
"isMultiLevelFilter": false,
"source": "Prompt"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/ProtectedMaterialText",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "ProtectedMaterialText",
"properties": {
"name": "Protected Material Text",
"isMultiLevelFilter": false,
"source": "Completion"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/ProtectedMaterialCode",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "ProtectedMaterialCode",
"properties": {
"name": "Protected Material Code",
"isMultiLevelFilter": false,
"source": "Completion"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/Profanity",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "Profanity",
"properties": {
"name": "Profanity",
"isMultiLevelFilter": false
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices/locations/WestUS/raiContentFilters/IndirectAttack",
"type": "Microsoft.CognitiveServices/locations/raiContentFilters",
"name": "IndirectAttack",
"properties": {
"name": "Indirect Attack",
"isMultiLevelFilter": false,
"source": "Prompt"
}
}
]
}
Definitionen
Name | Beschreibung |
---|---|
Error |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
Error |
Das Fehlerdetails. |
Error |
Fehlerantwort |
Properties |
Azure OpenAI-Inhaltsfiltereigenschaften. |
Rai |
Azure OpenAI-Inhaltsfilter. |
Rai |
Die Liste der Inhaltsfilter. |
Rai |
Inhaltsquelle, um die Inhaltsfilter anzuwenden. |
ErrorAdditionalInfo
Der Ressourcenverwaltungsfehler zusätzliche Informationen.
Name | Typ | Beschreibung |
---|---|---|
info |
object |
Die zusätzlichen Informationen. |
type |
string |
Der zusätzliche Informationstyp. |
ErrorDetail
Das Fehlerdetails.
Name | Typ | Beschreibung |
---|---|---|
additionalInfo |
Die zusätzlichen Informationen des Fehlers. |
|
code |
string |
Der Fehlercode. |
details |
Die Fehlerdetails. |
|
message |
string |
Die Fehlermeldung. |
target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
Name | Typ | Beschreibung |
---|---|---|
error |
Das Fehlerobjekt. |
Properties
Azure OpenAI-Inhaltsfiltereigenschaften.
Name | Typ | Beschreibung |
---|---|---|
isMultiLevelFilter |
boolean |
Wenn der Inhaltsfilter mehrere Schweregrade aufweist(Niedrig, Mittel oder Hoch). |
name |
string |
Name des Inhaltsfilters. |
source |
Inhaltsquelle, um die Inhaltsfilter anzuwenden. |
RaiContentFilter
Azure OpenAI-Inhaltsfilter.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Vollqualifizierte Ressourcen-ID für die Ressource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Der Name der Ressource |
properties |
Azure OpenAI-Inhaltsfiltereigenschaften. |
|
type |
string |
Der Typ der Ressource. Z. B. "Microsoft.Compute/virtualMachines" oder "Microsoft.Storage/storageAccounts" |
RaiContentFilterListResult
Die Liste der Inhaltsfilter.
Name | Typ | Beschreibung |
---|---|---|
nextLink |
string |
Der Link, der zum Abrufen der nächsten Seite von Inhaltsfiltern verwendet wird. |
value |
Die Liste von RaiContentFilter. |
RaiPolicyContentSource
Inhaltsquelle, um die Inhaltsfilter anzuwenden.
Wert | Beschreibung |
---|---|
Completion | |
Prompt |