Junjie
1 天以前 13b2678b0d6402cefee85bafe4da69aa72528a28
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
package com.zy.ai.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
 
import java.io.Serializable;
import java.util.Date;
 
@TableName("sys_llm_route")
public class LlmRouteConfig implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    private String name;
 
    @TableField("provider_type")
    private String providerType;
 
    @TableField("protocol_type")
    private String protocolType;
 
    @TableField("base_url")
    private String baseUrl;
 
    @TableField("endpoint_path")
    private String endpointPath;
 
    @TableField("api_key")
    private String apiKey;
 
    @TableField("auth_type")
    private String authType;
 
    @TableField("auth_header_name")
    private String authHeaderName;
 
    private String model;
 
    private String capabilities;
 
    @TableField("request_options")
    private String requestOptions;
 
    /**
     * 1 开启深度思考 0 关闭
     */
    private Short thinking;
 
    /**
     * 数字越小优先级越高
     */
    private Integer priority;
 
    /**
     * 1 启用 0 禁用
     */
    private Short status;
 
    @TableField("switch_on_quota")
    private Short switchOnQuota;
 
    @TableField("switch_on_error")
    private Short switchOnError;
 
    @TableField("cooldown_seconds")
    private Integer cooldownSeconds;
 
    @TableField("cooldown_until")
    private Date cooldownUntil;
 
    @TableField("fail_count")
    private Integer failCount;
 
    @TableField("success_count")
    private Integer successCount;
 
    @TableField("consecutive_fail_count")
    private Integer consecutiveFailCount;
 
    @TableField("last_error")
    private String lastError;
 
    @TableField("last_used_time")
    private Date lastUsedTime;
 
    @TableField("last_fail_time")
    private Date lastFailTime;
 
    @TableField("create_time")
    private Date createTime;
 
    @TableField("update_time")
    private Date updateTime;
 
    private String memo;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getProviderType() {
        return providerType;
    }
 
    public void setProviderType(String providerType) {
        this.providerType = providerType;
    }
 
    public String getProtocolType() {
        return protocolType;
    }
 
    public void setProtocolType(String protocolType) {
        this.protocolType = protocolType;
    }
 
    public String getBaseUrl() {
        return baseUrl;
    }
 
    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }
 
    public String getEndpointPath() {
        return endpointPath;
    }
 
    public void setEndpointPath(String endpointPath) {
        this.endpointPath = endpointPath;
    }
 
    public String getApiKey() {
        return apiKey;
    }
 
    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }
 
    public String getAuthType() {
        return authType;
    }
 
    public void setAuthType(String authType) {
        this.authType = authType;
    }
 
    public String getAuthHeaderName() {
        return authHeaderName;
    }
 
    public void setAuthHeaderName(String authHeaderName) {
        this.authHeaderName = authHeaderName;
    }
 
    public String getModel() {
        return model;
    }
 
    public void setModel(String model) {
        this.model = model;
    }
 
    public String getCapabilities() {
        return capabilities;
    }
 
    public void setCapabilities(String capabilities) {
        this.capabilities = capabilities;
    }
 
    public String getRequestOptions() {
        return requestOptions;
    }
 
    public void setRequestOptions(String requestOptions) {
        this.requestOptions = requestOptions;
    }
 
    public Short getThinking() {
        return thinking;
    }
 
    public void setThinking(Short thinking) {
        this.thinking = thinking;
    }
 
    public Integer getPriority() {
        return priority;
    }
 
    public void setPriority(Integer priority) {
        this.priority = priority;
    }
 
    public Short getStatus() {
        return status;
    }
 
    public void setStatus(Short status) {
        this.status = status;
    }
 
    public Short getSwitchOnQuota() {
        return switchOnQuota;
    }
 
    public void setSwitchOnQuota(Short switchOnQuota) {
        this.switchOnQuota = switchOnQuota;
    }
 
    public Short getSwitchOnError() {
        return switchOnError;
    }
 
    public void setSwitchOnError(Short switchOnError) {
        this.switchOnError = switchOnError;
    }
 
    public Integer getCooldownSeconds() {
        return cooldownSeconds;
    }
 
    public void setCooldownSeconds(Integer cooldownSeconds) {
        this.cooldownSeconds = cooldownSeconds;
    }
 
    public Date getCooldownUntil() {
        return cooldownUntil;
    }
 
    public void setCooldownUntil(Date cooldownUntil) {
        this.cooldownUntil = cooldownUntil;
    }
 
    public Integer getFailCount() {
        return failCount;
    }
 
    public void setFailCount(Integer failCount) {
        this.failCount = failCount;
    }
 
    public Integer getSuccessCount() {
        return successCount;
    }
 
    public void setSuccessCount(Integer successCount) {
        this.successCount = successCount;
    }
 
    public Integer getConsecutiveFailCount() {
        return consecutiveFailCount;
    }
 
    public void setConsecutiveFailCount(Integer consecutiveFailCount) {
        this.consecutiveFailCount = consecutiveFailCount;
    }
 
    public String getLastError() {
        return lastError;
    }
 
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }
 
    public Date getLastUsedTime() {
        return lastUsedTime;
    }
 
    public void setLastUsedTime(Date lastUsedTime) {
        this.lastUsedTime = lastUsedTime;
    }
 
    public Date getLastFailTime() {
        return lastFailTime;
    }
 
    public void setLastFailTime(Date lastFailTime) {
        this.lastFailTime = lastFailTime;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    public String getMemo() {
        return memo;
    }
 
    public void setMemo(String memo) {
        this.memo = memo;
    }
}