1
1
package com.aallam.openai.azure.api.filtering
2
2
3
- import kotlinx.serialization.SerialName
4
3
import kotlinx.serialization.Serializable
5
4
6
5
/* *
7
6
* Ratings for the intensity and risk level of harmful content.
8
7
*/
9
8
@Serializable
10
- public enum class ContentFilterSeverity (@Serializable public val value : String ) {
9
+ @JvmInline
10
+ public value class ContentFilterSeverity (public val value : String ) {
11
+ public companion object {
12
+ /* *
13
+ * Content may be related to violence, self-harm, sexual, or hate categories but the terms
14
+ * are used in general, journalistic, scientific, medical, and similar professional contexts,
15
+ * which are appropriate for most audiences.
16
+ */
17
+ public val SAFE : ContentFilterSeverity = ContentFilterSeverity (" safe" )
11
18
12
- /* *
13
- * Content may be related to violence, self-harm, sexual, or hate categories but the terms
14
- * are used in general, journalistic, scientific, medical, and similar professional contexts,
15
- * which are appropriate for most audiences.
16
- */
17
- @SerialName(" safe" )
18
- SAFE (" safe" ),
19
+ /* *
20
+ * Content that expresses prejudiced, judgmental, or opinionated views, includes offensive
21
+ * use of language, stereotyping, use cases exploring a fictional world (for example, gaming,
22
+ * literature) and depictions at low intensity.
23
+ */
24
+ public val LOW : ContentFilterSeverity = ContentFilterSeverity (" low" )
19
25
20
- /* *
21
- * Content that expresses prejudiced, judgmental, or opinionated views, includes offensive
22
- * use of language, stereotyping, use cases exploring a fictional world (for example, gaming,
23
- * literature) and depictions at low intensity.
24
- */
25
- @SerialName(" low" )
26
- LOW (" low" ),
26
+ /* *
27
+ * Content that uses offensive, insulting, mocking, intimidating, or demeaning language
28
+ * towards specific identity groups, includes depictions of seeking and executing harmful
29
+ * instructions, fantasies, glorification, promotion of harm at medium intensity.
30
+ */
31
+ public val MEDIUM : ContentFilterSeverity = ContentFilterSeverity (" medium" )
27
32
28
- /* *
29
- * Content that uses offensive, insulting, mocking, intimidating, or demeaning language
30
- * towards specific identity groups, includes depictions of seeking and executing harmful
31
- * instructions, fantasies, glorification, promotion of harm at medium intensity.
32
- */
33
- @SerialName(" medium" )
34
- MEDIUM (" medium" ),
35
-
36
- /* *
37
- * Content that displays explicit and severe harmful instructions, actions,
38
- * damage, or abuse; includes endorsement, glorification, or promotion of severe
39
- * harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual
40
- * power exchange or abuse.
41
- */
42
- @SerialName(" high" )
43
- HIGH (" high" )
44
- }
33
+ /* *
34
+ * Content that displays explicit and severe harmful instructions, actions,
35
+ * damage, or abuse; includes endorsement, glorification, or promotion of severe
36
+ * harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual
37
+ * power exchange or abuse.
38
+ */
39
+ public val HIGH : ContentFilterSeverity = ContentFilterSeverity (" high" )
40
+ }
41
+ }
0 commit comments