Class: OpenAI::Models::Chat::ChatCompletion::Moderation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Chat::ChatCompletion::Moderation
- Defined in:
- lib/openai/models/chat/chat_completion.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#input ⇒ OpenAI::Models::Chat::ChatCompletion::Moderation::Input::ModerationResults, OpenAI::Models::Chat::ChatCompletion::Moderation::Input::Error
Moderation for the request input.
-
#output ⇒ OpenAI::Models::Chat::ChatCompletion::Moderation::Output::ModerationResults, OpenAI::Models::Chat::ChatCompletion::Moderation::Output::Error
Moderation for the generated output.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, message:, type: :error) ⇒ Object
constructor
An error produced while attempting moderation.
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(code:, message:, type: :error) ⇒ Object
An error produced while attempting moderation.
|
|
# File 'lib/openai/models/chat/chat_completion.rb', line 217
|
Instance Attribute Details
#input ⇒ OpenAI::Models::Chat::ChatCompletion::Moderation::Input::ModerationResults, OpenAI::Models::Chat::ChatCompletion::Moderation::Input::Error
Moderation for the request input.
209 |
# File 'lib/openai/models/chat/chat_completion.rb', line 209 required :input, union: -> { OpenAI::Chat::ChatCompletion::Moderation::Input } |
#output ⇒ OpenAI::Models::Chat::ChatCompletion::Moderation::Output::ModerationResults, OpenAI::Models::Chat::ChatCompletion::Moderation::Output::Error
Moderation for the generated output.
215 |
# File 'lib/openai/models/chat/chat_completion.rb', line 215 required :output, union: -> { OpenAI::Chat::ChatCompletion::Moderation::Output } |
Class Method Details
.variants ⇒ Array(OpenAI::Models::Chat::ChatCompletion::Moderation::Input::ModerationResults, OpenAI::Models::Chat::ChatCompletion::Moderation::Input::Error)
|
|
# File 'lib/openai/models/chat/chat_completion.rb', line 372
|