Junjie
3 天以前 b7a738a16531191b43ea2327acca7d861dfd9f09
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.zy.ai.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
@Data
@TableName("sys_ai_chat_session")
public class AiChatSession implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @TableField("chat_id")
    private String chatId;
 
    private String title;
 
    @TableField("prompt_template_id")
    private Long promptTemplateId;
 
    @TableField("prompt_scene_code")
    private String promptSceneCode;
 
    @TableField("prompt_version")
    private Integer promptVersion;
 
    @TableField("prompt_name")
    private String promptName;
 
    @TableField("message_count")
    private Integer messageCount;
 
    @TableField("last_prompt_tokens")
    private Long lastPromptTokens;
 
    @TableField("last_completion_tokens")
    private Long lastCompletionTokens;
 
    @TableField("last_total_tokens")
    private Long lastTotalTokens;
 
    @TableField("last_llm_call_count")
    private Integer lastLlmCallCount;
 
    @TableField("last_token_updated_at")
    private Date lastTokenUpdatedAt;
 
    @TableField("sum_prompt_tokens")
    private Long sumPromptTokens;
 
    @TableField("sum_completion_tokens")
    private Long sumCompletionTokens;
 
    @TableField("sum_total_tokens")
    private Long sumTotalTokens;
 
    @TableField("ask_count")
    private Long askCount;
 
    @TableField("create_time")
    private Date createTime;
 
    @TableField("update_time")
    private Date updateTime;
}