Package com.azure.ai.openai.models
Class ContentFilterSeverity
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ContentFilterSeverity>
com.azure.ai.openai.models.ContentFilterSeverity
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ContentFilterSeverity
extends com.azure.core.util.ExpandableStringEnum<ContentFilterSeverity>
Ratings for the intensity and risk level of harmful content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentFilterSeverityContent 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 ContentFilterSeverityContent 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 ContentFilterSeverityContent 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 ContentFilterSeverityContent 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentFilterSeverityfromString(String name) Creates or finds a ContentFilterSeverity from its string representation.static Collection<ContentFilterSeverity> values()Gets known ContentFilterSeverity values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
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. -
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
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. -
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.
-
-
Constructor Details
-
ContentFilterSeverity
Deprecated.Use thefromString(String)factory method.Creates a new instance of ContentFilterSeverity value.
-
-
Method Details
-
fromString
Creates or finds a ContentFilterSeverity from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ContentFilterSeverity.
-
values
Gets known ContentFilterSeverity values.- Returns:
- known ContentFilterSeverity values.
-
fromString(String)factory method.