perf: 去除冗余代码

This commit is contained in:
archer
2023-04-26 21:59:22 +08:00
parent 0540c2e46a
commit 46eb96c72e
34 changed files with 36 additions and 851 deletions

View File

@@ -21,11 +21,6 @@ const ModelSchema = new Schema({
type: String,
default: ''
},
intro: {
// 模型介绍
type: String,
default: ''
},
status: {
type: String,
required: true,
@@ -35,10 +30,6 @@ const ModelSchema = new Schema({
type: Date,
default: () => new Date()
},
trainingTimes: {
type: Number,
default: 0
},
temperature: {
type: Number,
min: 0,
@@ -53,11 +44,6 @@ const ModelSchema = new Schema({
}
},
service: {
trainId: {
// 训练时需要的 ID 不能训练的模型没有这个值。
type: String,
required: false
},
chatModel: {
// 聊天时使用的模型
type: String,