All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.felh.openai.moderation.Moderation Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.moderation;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import xyz.felh.openai.IOpenAiApiObject;
import lombok.Data;

@Data
public class Moderation implements IOpenAiApiObject {

    /**
     * Whether the content violates OpenAI's usage policies.
     */
    @JSONField(name = "flagged")
    @JsonProperty("flagged")
    private Boolean flagged;

    /**
     * A list of the categories, and whether they are flagged or not.
     */
    @JSONField(name = "categories")
    @JsonProperty("categories")
    private ModerationCategories categories;

    /**
     * A list of the categories along with their scores as predicted by model.
     */
    @JSONField(name = "category_scores")
    @JsonProperty("category_scores")
    private ModerationCategoryScores categoryScores;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy