io.github.sashirestela.openai.common.PageRequest 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.
The newest version!
package io.github.sashirestela.openai.common;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Getter;
@Getter
@Builder
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class PageRequest {
private Integer limit;
private Order order;
private String after;
private String before;
public enum Order {
@JsonProperty("asc")
ASC,
@JsonProperty("desc")
DESC
}
}