ContentFilterSeverity Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. openai. models. ContentFilterSeverity
- com.
- com.
public final class ContentFilterSeverity
extends ExpandableStringEnum<ContentFilterSeverity>
Ratings for the intensity and risk level of harmful content.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Content |
HIGH
Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse. |
static final
Content |
LOW
Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity. |
static final
Content |
MEDIUM
Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity. |
static final
Content |
SAFE
Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences. |
Constructor Summary
Constructor | Description |
---|---|
ContentFilterSeverity() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Content |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Content |
fromString(String name)
Creates or finds a Content |
static
Collection<Content |
values()
Gets known Content |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
HIGH
public static final ContentFilterSeverity HIGH
Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse.
LOW
public static final ContentFilterSeverity LOW
Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity.
MEDIUM
public static final ContentFilterSeverity MEDIUM
Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity.
SAFE
public static final ContentFilterSeverity SAFE
Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences.
Constructor Details
ContentFilterSeverity
@Deprecated
public ContentFilterSeverity()
Deprecated
Creates a new instance of ContentFilterSeverity value.
Method Details
fromString
public static ContentFilterSeverity fromString(String name)
Creates or finds a ContentFilterSeverity from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known ContentFilterSeverity values.
Returns:
Applies to
Azure SDK for Java