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

xyz.felh.openai.OpenAiApiObjectWithId 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;

/**
 * An abstract class of OpenAi API Response
 */
@Data
public abstract class OpenAiApiObjectWithId implements IOpenAiApiObject {

    /**
     * A unique identifier for the chat completion.
     */
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    /**
     * The object type
     */
    @JSONField(name = "object")
    @JsonProperty("object")
    private String object;

    /**
     * 时间戳
     */
    @JSONField(name = "created")
    @JsonProperty("created")
    private Long created;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy