#
Junjie
昨天 5e492e5d5a2b743e2e99443220d343f72a633f6d
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
package com.zy.ai.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
 
import java.io.Serializable;
import java.util.Date;
 
@TableName("sys_llm_call_log")
public class LlmCallLog implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @TableField("trace_id")
    private String traceId;
 
    private String scene;
 
    private Short stream;
 
    @TableField("attempt_no")
    private Integer attemptNo;
 
    @TableField("route_id")
    private Long routeId;
 
    @TableField("route_name")
    private String routeName;
 
    @TableField("base_url")
    private String baseUrl;
 
    private String model;
 
    private Short success;
 
    @TableField("http_status")
    private Integer httpStatus;
 
    @TableField("latency_ms")
    private Long latencyMs;
 
    @TableField("switch_mode")
    private String switchMode;
 
    @TableField("request_content")
    private String requestContent;
 
    @TableField("response_content")
    private String responseContent;
 
    @TableField("error_type")
    private String errorType;
 
    @TableField("error_message")
    private String errorMessage;
 
    private String extra;
 
    @TableField("create_time")
    private Date createTime;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getTraceId() {
        return traceId;
    }
 
    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }
 
    public String getScene() {
        return scene;
    }
 
    public void setScene(String scene) {
        this.scene = scene;
    }
 
    public Short getStream() {
        return stream;
    }
 
    public void setStream(Short stream) {
        this.stream = stream;
    }
 
    public Integer getAttemptNo() {
        return attemptNo;
    }
 
    public void setAttemptNo(Integer attemptNo) {
        this.attemptNo = attemptNo;
    }
 
    public Long getRouteId() {
        return routeId;
    }
 
    public void setRouteId(Long routeId) {
        this.routeId = routeId;
    }
 
    public String getRouteName() {
        return routeName;
    }
 
    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }
 
    public String getBaseUrl() {
        return baseUrl;
    }
 
    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
 
    public String getModel() {
        return model;
    }
 
    public void setModel(String model) {
        this.model = model;
    }
 
    public Short getSuccess() {
        return success;
    }
 
    public void setSuccess(Short success) {
        this.success = success;
    }
 
    public Integer getHttpStatus() {
        return httpStatus;
    }
 
    public void setHttpStatus(Integer httpStatus) {
        this.httpStatus = httpStatus;
    }
 
    public Long getLatencyMs() {
        return latencyMs;
    }
 
    public void setLatencyMs(Long latencyMs) {
        this.latencyMs = latencyMs;
    }
 
    public String getSwitchMode() {
        return switchMode;
    }
 
    public void setSwitchMode(String switchMode) {
        this.switchMode = switchMode;
    }
 
    public String getRequestContent() {
        return requestContent;
    }
 
    public void setRequestContent(String requestContent) {
        this.requestContent = requestContent;
    }
 
    public String getResponseContent() {
        return responseContent;
    }
 
    public void setResponseContent(String responseContent) {
        this.responseContent = responseContent;
    }
 
    public String getErrorType() {
        return errorType;
    }
 
    public void setErrorType(String errorType) {
        this.errorType = errorType;
    }
 
    public String getErrorMessage() {
        return errorMessage;
    }
 
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
 
    public String getExtra() {
        return extra;
    }
 
    public void setExtra(String extra) {
        this.extra = extra;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}