CompletionChatResponse.java 726 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
package com.kwan.springbootkwan.entity.chat;

import com.theokanning.openai.Usage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


/**
 * 响应结果
 *
 * @author : qinyingjie
 * @version : 2.2.0
 * @date : 2023/3/22 21:13
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CompletionChatResponse {
    /**
     * id
     */
    String id;
    /**
     * chat.completion
     */
    String object;
    /**
     * 创建时间
     */
    long created;
    /**
     * 模型
     */
    String model;
    /**
     * 结果集
     */
    List<Choices> choices;
    /**
     * 使用情况
     */
    Usage usage;
}