com.launchableinc.openai.OpenAiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Basic java objects for the OpenAI GPT APIs
package com.launchableinc.openai;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
/**
* A wrapper class to fit the OpenAI engine and search endpoints
*/
@Data
public class OpenAiResponse {
/**
* A list containing the actual results
*/
public List data;
/**
* The type of object returned, should be "list"
*/
public String object;
/**
* The first id included
*/
@JsonProperty("first_id")
public String firstId;
/**
* The last id included
*/
@JsonProperty("last_id")
public String lastId;
/**
* True if there are objects after lastId
*/
@JsonProperty("has_more")
public boolean hasMore;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy