Struct async_openai::types::CreateModerationRequest
source · pub struct CreateModerationRequest {
pub input: Input,
pub model: Option<TextModerationModel>,
}
Fields§
§input: Input
The input text to classify
model: Option<TextModerationModel>
Two content moderations models are available: text-moderation-stable
and text-moderation-latest
.
The default is text-moderation-latest
which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use text-moderation-stable
, we will provide advanced notice before updating the model. Accuracy of text-moderation-stable
may be slightly lower than for text-moderation-latest
.
Trait Implementations§
source§impl Debug for CreateModerationRequest
impl Debug for CreateModerationRequest
source§impl Default for CreateModerationRequest
impl Default for CreateModerationRequest
source§fn default() -> CreateModerationRequest
fn default() -> CreateModerationRequest
Returns the “default value” for a type. Read more