Class ContentFilterSeverity

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ContentFilterSeverity>
com.azure.ai.openai.models.ContentFilterSeverity

public final class ContentFilterSeverity extends com.azure.core.util.ExpandableStringEnum<ContentFilterSeverity>
Ratings for the intensity and risk level of harmful content.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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.
    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.
    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.
    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

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates or finds a ContentFilterSeverity from its string representation.
    Gets known ContentFilterSeverity values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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.
    • 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.
    • 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.
  • Constructor Details

    • ContentFilterSeverity

      @Deprecated public ContentFilterSeverity()
      Deprecated.
      Use the fromString(String) factory method.
      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:
      name - a name to look for.
      Returns:
      the corresponding ContentFilterSeverity.
    • values

      public static Collection<ContentFilterSeverity> values()
      Gets known ContentFilterSeverity values.
      Returns:
      known ContentFilterSeverity values.