Class: OpenAI::Models::Moderation::CategoryScores
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Moderation::CategoryScores
- Defined in:
- lib/openai/models/moderation.rb
Overview
Instance Attribute Summary collapse
-
#harassment ⇒ Float
The score for the category ‘harassment’.
-
#harassment_threatening ⇒ Float
The score for the category ‘harassment/threatening’.
-
#hate ⇒ Float
The score for the category ‘hate’.
-
#hate_threatening ⇒ Float
The score for the category ‘hate/threatening’.
-
#illicit ⇒ Float
The score for the category ‘illicit’.
-
#illicit_violent ⇒ Float
The score for the category ‘illicit/violent’.
-
#self_harm ⇒ Float
The score for the category ‘self-harm’.
-
#self_harm_instructions ⇒ Float
The score for the category ‘self-harm/instructions’.
-
#self_harm_intent ⇒ Float
The score for the category ‘self-harm/intent’.
-
#sexual ⇒ Float
The score for the category ‘sexual’.
-
#sexual_minors ⇒ Float
The score for the category ‘sexual/minors’.
-
#violence ⇒ Float
The score for the category ‘violence’.
-
#violence_graphic ⇒ Float
The score for the category ‘violence/graphic’.
Instance Method Summary collapse
-
#initialize(harassment:, harassment_threatening:, hate:, hate_threatening:, illicit:, illicit_violent:, self_harm:, self_harm_instructions:, self_harm_intent:, sexual:, sexual_minors:, violence:, violence_graphic:) ⇒ Object
constructor
A list of the categories along with their scores as predicted by model.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(harassment:, harassment_threatening:, hate:, hate_threatening:, illicit:, illicit_violent:, self_harm:, self_harm_instructions:, self_harm_intent:, sexual:, sexual_minors:, violence:, violence_graphic:) ⇒ Object
A list of the categories along with their scores as predicted by model.
|
|
# File 'lib/openai/models/moderation.rb', line 522
|
Instance Attribute Details
#harassment ⇒ Float
The score for the category ‘harassment’.
448 |
# File 'lib/openai/models/moderation.rb', line 448 required :harassment, Float |
#harassment_threatening ⇒ Float
The score for the category ‘harassment/threatening’.
454 |
# File 'lib/openai/models/moderation.rb', line 454 required :harassment_threatening, Float, api_name: :"harassment/threatening" |
#hate ⇒ Float
The score for the category ‘hate’.
460 |
# File 'lib/openai/models/moderation.rb', line 460 required :hate, Float |
#hate_threatening ⇒ Float
The score for the category ‘hate/threatening’.
466 |
# File 'lib/openai/models/moderation.rb', line 466 required :hate_threatening, Float, api_name: :"hate/threatening" |
#illicit ⇒ Float
The score for the category ‘illicit’.
472 |
# File 'lib/openai/models/moderation.rb', line 472 required :illicit, Float |
#illicit_violent ⇒ Float
The score for the category ‘illicit/violent’.
478 |
# File 'lib/openai/models/moderation.rb', line 478 required :illicit_violent, Float, api_name: :"illicit/violent" |
#self_harm ⇒ Float
The score for the category ‘self-harm’.
484 |
# File 'lib/openai/models/moderation.rb', line 484 required :self_harm, Float, api_name: :"self-harm" |
#self_harm_instructions ⇒ Float
The score for the category ‘self-harm/instructions’.
490 |
# File 'lib/openai/models/moderation.rb', line 490 required :self_harm_instructions, Float, api_name: :"self-harm/instructions" |
#self_harm_intent ⇒ Float
The score for the category ‘self-harm/intent’.
496 |
# File 'lib/openai/models/moderation.rb', line 496 required :self_harm_intent, Float, api_name: :"self-harm/intent" |
#sexual ⇒ Float
The score for the category ‘sexual’.
502 |
# File 'lib/openai/models/moderation.rb', line 502 required :sexual, Float |
#sexual_minors ⇒ Float
The score for the category ‘sexual/minors’.
508 |
# File 'lib/openai/models/moderation.rb', line 508 required :sexual_minors, Float, api_name: :"sexual/minors" |
#violence ⇒ Float
The score for the category ‘violence’.
514 |
# File 'lib/openai/models/moderation.rb', line 514 required :violence, Float |
#violence_graphic ⇒ Float
The score for the category ‘violence/graphic’.
520 |
# File 'lib/openai/models/moderation.rb', line 520 required :violence_graphic, Float, api_name: :"violence/graphic" |