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

xyz.felh.openai.OpenAiApiListResponse Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * A List wrapper class of OpenAi API endpoints
 *
 * @param 
 */
@Data
public class OpenAiApiListResponse implements IOpenAiApiResponse {

    /**
     * always "list"
     */
    @JSONField(name = "object")
    @JsonProperty("object")
    private String object;

    /**
     * A list containing the actual results
     */
    @JSONField(name = "data")
    @JsonProperty("data")
    private List data;


    /**
     * 是否有更多
     */
    @JSONField(name = "has_more")
    @JsonProperty("has_more")
    private Boolean hasMore;

    /**
     * add when list assistants
     */
    @JSONField(name = "first_id")
    @JsonProperty("first_id")
    private String firstId;

    /**
     * add when list assistants
     */
    @JSONField(name = "last_id")
    @JsonProperty("last_id")
    private String lastId;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy