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

io.github.sashirestela.openai.domain.file.FileRequest Maven / Gradle / Ivy

There is a newer version: 3.9.2
Show newest version
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;

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy