Class: OpenAI::Models::Moderation::CategoryScores

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/moderation.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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, 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.

Parameters:

  • harassment (Float) (defaults to: )

    The score for the category ‘harassment’.

  • harassment_threatening (Float) (defaults to: )

    The score for the category ‘harassment/threatening’.

  • hate (Float) (defaults to: )

    The score for the category ‘hate’.

  • hate_threatening (Float) (defaults to: )

    The score for the category ‘hate/threatening’.

  • illicit (Float) (defaults to: )

    The score for the category ‘illicit’.

  • illicit_violent (Float) (defaults to: )

    The score for the category ‘illicit/violent’.

  • self_harm (Float) (defaults to: )

    The score for the category ‘self-harm’.

  • self_harm_instructions (Float) (defaults to: )

    The score for the category ‘self-harm/instructions’.

  • self_harm_intent (Float) (defaults to: )

    The score for the category ‘self-harm/intent’.

  • sexual (Float) (defaults to: )

    The score for the category ‘sexual’.

  • sexual_minors (Float) (defaults to: )

    The score for the category ‘sexual/minors’.

  • violence (Float) (defaults to: )

    The score for the category ‘violence’.

  • violence_graphic (Float) (defaults to: )

    The score for the category ‘violence/graphic’.



# File 'lib/openai/models/moderation.rb', line 532

Instance Attribute Details

#harassmentFloat

The score for the category ‘harassment’.

Returns:

  • (Float)


458
# File 'lib/openai/models/moderation.rb', line 458

required :harassment, Float

#harassment_threateningFloat

The score for the category ‘harassment/threatening’.

Returns:

  • (Float)


464
# File 'lib/openai/models/moderation.rb', line 464

required :harassment_threatening, Float, api_name: :"harassment/threatening"

#hateFloat

The score for the category ‘hate’.

Returns:

  • (Float)


470
# File 'lib/openai/models/moderation.rb', line 470

required :hate, Float

#hate_threateningFloat

The score for the category ‘hate/threatening’.

Returns:

  • (Float)


476
# File 'lib/openai/models/moderation.rb', line 476

required :hate_threatening, Float, api_name: :"hate/threatening"

#illicitFloat

The score for the category ‘illicit’.

Returns:

  • (Float)


482
# File 'lib/openai/models/moderation.rb', line 482

required :illicit, Float

#illicit_violentFloat

The score for the category ‘illicit/violent’.

Returns:

  • (Float)


488
# File 'lib/openai/models/moderation.rb', line 488

required :illicit_violent, Float, api_name: :"illicit/violent"

#self_harmFloat

The score for the category ‘self-harm’.

Returns:

  • (Float)


494
# File 'lib/openai/models/moderation.rb', line 494

required :self_harm, Float, api_name: :"self-harm"

#self_harm_instructionsFloat

The score for the category ‘self-harm/instructions’.

Returns:

  • (Float)


500
# File 'lib/openai/models/moderation.rb', line 500

required :self_harm_instructions, Float, api_name: :"self-harm/instructions"

#self_harm_intentFloat

The score for the category ‘self-harm/intent’.

Returns:

  • (Float)


506
# File 'lib/openai/models/moderation.rb', line 506

required :self_harm_intent, Float, api_name: :"self-harm/intent"

#sexualFloat

The score for the category ‘sexual’.

Returns:

  • (Float)


512
# File 'lib/openai/models/moderation.rb', line 512

required :sexual, Float

#sexual_minorsFloat

The score for the category ‘sexual/minors’.

Returns:

  • (Float)


518
# File 'lib/openai/models/moderation.rb', line 518

required :sexual_minors, Float, api_name: :"sexual/minors"

#violenceFloat

The score for the category ‘violence’.

Returns:

  • (Float)


524
# File 'lib/openai/models/moderation.rb', line 524

required :violence, Float

#violence_graphicFloat

The score for the category ‘violence/graphic’.

Returns:

  • (Float)


530
# File 'lib/openai/models/moderation.rb', line 530

required :violence_graphic, Float, api_name: :"violence/graphic"