-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAiJsonschema.java
More file actions
174 lines (131 loc) · 3.59 KB
/
AiJsonschema.java
File metadata and controls
174 lines (131 loc) · 3.59 KB
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
package com.github.aiassistant.entity;
import java.io.Serializable;
//// @Data
//// @TableName("ai_jsonschema")
public class AiJsonschema implements Serializable {
// // @TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String apiKey;
private String baseUrl;
private String modelName;
private String responseFormat;
private String jsonSchemaEnum;
private String systemPromptText;
private String userPromptText;
private String aiToolIds;
private Boolean enableFlag;
/**
* 指令生成的回答中包含的最大token数。例如,如果设置为100,那么模型生成的回答中token数不会超过100个
*/
private Integer maxCompletionTokens;
/**
* 丰富度,0.1至1之间,最大越丰富
*/
private Double temperature;
/**
* 随机度,0.1至1之间,最大越随机
*/
private Double topP;
/**
* 备注
*/
private String remark;
/**
* 超时时间(单位:毫秒)
*/
private Integer timeoutMs;
public Integer getTimeoutMs() {
return timeoutMs;
}
public void setTimeoutMs(Integer timeoutMs) {
this.timeoutMs = timeoutMs;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
public String getModelName() {
return modelName;
}
public void setModelName(String modelName) {
this.modelName = modelName;
}
public String getResponseFormat() {
return responseFormat;
}
public void setResponseFormat(String responseFormat) {
this.responseFormat = responseFormat;
}
public String getJsonSchemaEnum() {
return jsonSchemaEnum;
}
public void setJsonSchemaEnum(String jsonSchemaEnum) {
this.jsonSchemaEnum = jsonSchemaEnum;
}
public String getSystemPromptText() {
return systemPromptText;
}
public void setSystemPromptText(String systemPromptText) {
this.systemPromptText = systemPromptText;
}
public String getUserPromptText() {
return userPromptText;
}
public void setUserPromptText(String userPromptText) {
this.userPromptText = userPromptText;
}
public String getAiToolIds() {
return aiToolIds;
}
public void setAiToolIds(String aiToolIds) {
this.aiToolIds = aiToolIds;
}
public Boolean getEnableFlag() {
return enableFlag;
}
public void setEnableFlag(Boolean enableFlag) {
this.enableFlag = enableFlag;
}
public Integer getMaxCompletionTokens() {
return maxCompletionTokens;
}
public void setMaxCompletionTokens(Integer maxCompletionTokens) {
this.maxCompletionTokens = maxCompletionTokens;
}
public Double getTemperature() {
return temperature;
}
public void setTemperature(Double temperature) {
this.temperature = temperature;
}
public Double getTopP() {
return topP;
}
public void setTopP(Double topP) {
this.topP = topP;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
@Override
public String toString() {
return id + "#" + jsonSchemaEnum;
}
}