feat: qa生成

This commit is contained in:
archer
2023-03-24 01:19:38 +08:00
parent 8b72dca533
commit d8290f0809
15 changed files with 321 additions and 121 deletions

View File

@@ -1,4 +1,5 @@
import { Schema, model, models } from 'mongoose';
import { ModelList } from '@/constants/model';
const BillSchema = new Schema({
userId: {
@@ -6,6 +7,16 @@ const BillSchema = new Schema({
ref: 'user',
required: true
},
type: {
type: String,
enum: ['chat', 'generateData', 'return'],
required: true
},
modelName: {
type: String,
enum: ModelList.map((item) => item.model),
required: true
},
chatId: {
type: Schema.Types.ObjectId,
ref: 'chat',