io.github.sashirestela.openai.domain.batch.Batch 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.batch;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
import java.util.Map;
@NoArgsConstructor
@Getter
@ToString
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class Batch {
private String id;
private String object;
private EndpointType endpoint;
private BatchErrors errors;
private String inputFileId;
private String completionWindow;
private String status;
private String outputFileId;
private String errorFileId;
private Integer createdAt;
private Integer inProgressAt;
private Integer expiresAt;
private Integer finalizingAt;
private Integer completedAt;
private Integer failedAt;
private Integer expiredAt;
private Integer cancellingAt;
private Integer cancelledAt;
private RequestCountsType requestCounts;
private Map metadata;
@NoArgsConstructor
@Getter
@ToString
public static class BatchErrors {
private String object;
private List data;
}
@NoArgsConstructor
@Getter
@ToString
public static class BatchError {
private String code;
private String message;
private String param;
private Integer line;
}
@NoArgsConstructor
@Getter
@ToString
public static class RequestCountsType {
private Integer total;
private Integer completed;
private Integer failed;
}
}