ContentModerationConfig

class oci.generative_ai.models.ContentModerationConfig(**kwargs)

Bases: object

The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses. It’s recommended to use content moderation.

Methods

__init__(**kwargs) Initializes a new ContentModerationConfig object with values from keyword arguments.

Attributes

is_enabled [Required] Gets the is_enabled of this ContentModerationConfig.
__init__(**kwargs)

Initializes a new ContentModerationConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:is_enabled (bool) – The value to assign to the is_enabled property of this ContentModerationConfig.
is_enabled

[Required] Gets the is_enabled of this ContentModerationConfig. Whether to enable the content moderation feature.

Returns:The is_enabled of this ContentModerationConfig.
Return type:bool