Class: OpenAI::Models::Moderation::Categories
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Moderation::Categories
- Defined in:
- lib/openai/models/moderation.rb
Overview
Instance Attribute Summary collapse
-
#harassment ⇒ Boolean
Content that expresses, incites, or promotes harassing language towards any target.
-
#harassment_threatening ⇒ Boolean
Harassment content that also includes violence or serious harm towards any target.
-
#hate ⇒ Boolean
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
-
#hate_threatening ⇒ Boolean
Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
-
#illicit ⇒ Boolean?
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts.
-
#illicit_violent ⇒ Boolean?
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.
-
#self_harm ⇒ Boolean
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
-
#self_harm_instructions ⇒ Boolean
Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
-
#self_harm_intent ⇒ Boolean
Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
-
#sexual ⇒ Boolean
Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
-
#sexual_minors ⇒ Boolean
Sexual content that includes an individual who is under 18 years old.
-
#violence ⇒ Boolean
Content that depicts death, violence, or physical injury.
-
#violence_graphic ⇒ Boolean
Content that depicts death, violence, or physical injury in graphic detail.
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
This class inherits a constructor from OpenAI::Internal::Type::BaseModel
Instance Attribute Details
#harassment ⇒ Boolean
Content that expresses, incites, or promotes harassing language towards any target.
49 |
# File 'lib/openai/models/moderation.rb', line 49 required :harassment, OpenAI::Internal::Type::Boolean |
#harassment_threatening ⇒ Boolean
Harassment content that also includes violence or serious harm towards any target.
56 |
# File 'lib/openai/models/moderation.rb', line 56 required :harassment_threatening, OpenAI::Internal::Type::Boolean, api_name: :"harassment/threatening" |
#hate ⇒ Boolean
Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.
65 |
# File 'lib/openai/models/moderation.rb', line 65 required :hate, OpenAI::Internal::Type::Boolean |
#hate_threatening ⇒ Boolean
Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
73 |
# File 'lib/openai/models/moderation.rb', line 73 required :hate_threatening, OpenAI::Internal::Type::Boolean, api_name: :"hate/threatening" |
#illicit ⇒ Boolean?
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, “how to shoplift” would fit this category.
81 |
# File 'lib/openai/models/moderation.rb', line 81 required :illicit, OpenAI::Internal::Type::Boolean, nil?: true |
#illicit_violent ⇒ Boolean?
Content that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon.
89 |
# File 'lib/openai/models/moderation.rb', line 89 required :illicit_violent, OpenAI::Internal::Type::Boolean, api_name: :"illicit/violent", nil?: true |
#self_harm ⇒ Boolean
Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
96 |
# File 'lib/openai/models/moderation.rb', line 96 required :self_harm, OpenAI::Internal::Type::Boolean, api_name: :"self-harm" |
#self_harm_instructions ⇒ Boolean
Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
104 |
# File 'lib/openai/models/moderation.rb', line 104 required :self_harm_instructions, OpenAI::Internal::Type::Boolean, api_name: :"self-harm/instructions" |
#self_harm_intent ⇒ Boolean
Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
111 |
# File 'lib/openai/models/moderation.rb', line 111 required :self_harm_intent, OpenAI::Internal::Type::Boolean, api_name: :"self-harm/intent" |
#sexual ⇒ Boolean
Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
119 |
# File 'lib/openai/models/moderation.rb', line 119 required :sexual, OpenAI::Internal::Type::Boolean |
#sexual_minors ⇒ Boolean
Sexual content that includes an individual who is under 18 years old.
125 |
# File 'lib/openai/models/moderation.rb', line 125 required :sexual_minors, OpenAI::Internal::Type::Boolean, api_name: :"sexual/minors" |