package cn.bugstack.chatglm.model; import lombok.Data; import java.util.List; /** * 同步调用响应 * @author max * @date 2023/12/14 15:41 */ @Data public class ChatCompletionSyncResponse { private Integer code; private String msg; private Boolean success; private ChatGLMData data; @Data public static class ChatGLMData { private List choices; private String task_status; private Usage usage; private String task_id; private String request_id; } @Data public static class Usage { private int completion_tokens; private int prompt_tokens; private int total_tokens; } @Data public static class Choice { private String role; private String content; } }