Class ContentModerationConfig
The configuration details, whether to add the content moderation feature to the model. Content moderation removes toxic and biased content from responses.
Inherited Members
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
public class ContentModerationConfig
Properties
IsEnabled
Declaration
[Required(ErrorMessage = "IsEnabled is required.")]
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether to enable the content moderation feature. |
Remarks
Required
Mode
Declaration
[JsonProperty(PropertyName = "mode")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ContentModerationConfig.ModeEnum? Mode { get; set; }
Property Value
Type | Description |
---|---|
ContentModerationConfig.ModeEnum? | Enum for the modes of operation for inference protection. |
ModelId
Declaration
[JsonProperty(PropertyName = "modelId")]
public string ModelId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the model used for the feature. |