Method: OpenAI::Models::Moderation::CategoryScores#initialize

Defined in:
lib/openai/models/moderation.rb

#initialize(harassment: , harassment_threatening: , hate: , hate_threatening: , illicit: , illicit_violent: , self_harm: , self_harm_instructions: , self_harm_intent: , sexual: , sexual_minors: , violence: , violence_graphic: ) ⇒ void

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