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

com.launchableinc.openai.OpenAiResponse Maven / Gradle / Ivy

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