io.github.sashirestela.openai.domain.file.FileRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-openai Show documentation
Show all versions of simple-openai Show documentation
A Java library to use the OpenAI API in the simplest possible way.
package io.github.sashirestela.openai.domain.file;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.sashirestela.slimvalidator.constraints.Required;
import lombok.Builder;
import lombok.Getter;
import java.nio.file.Path;
@Getter
@Builder
public class FileRequest {
@Required
private Path file;
@Required
private PurposeType purpose;
public enum PurposeType {
@JsonProperty("fine-tune")
FINE_TUNE,
@JsonProperty("assistants")
ASSISTANTS,
@JsonProperty("batch")
BATCH,
@JsonProperty("vision")
VISION;
}
}