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

xyz.felh.openai.moderation.CreateModerationRequest 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 lombok.*;
import xyz.felh.openai.IOpenAiApiRequest;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor(force = true)
public class CreateModerationRequest implements IOpenAiApiRequest {

    /**
     * string or array Required
     * 

* The input text to classify */ @NonNull @JSONField(name = "input") @JsonProperty("input") private Object input; /** * Optional Defaults to text-moderation-latest *

* 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. */ @JSONField(name = "model") @JsonProperty("model") private String model; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy