feat: 训练数据管理

This commit is contained in:
archer
2023-03-25 01:40:15 +08:00
parent c0dc5a74c9
commit 8a9f1ed29b
27 changed files with 81165 additions and 97 deletions

View File

@@ -1,5 +1,5 @@
import { Schema, model, models } from 'mongoose';
import { ModelList } from '@/constants/model';
import { modelList } from '@/constants/model';
const BillSchema = new Schema({
userId: {
@@ -14,7 +14,7 @@ const BillSchema = new Schema({
},
modelName: {
type: String,
enum: ModelList.map((item) => item.model),
enum: modelList.map((item) => item.model),
required: true
},
chatId: {