perf: bill

This commit is contained in:
archer
2023-07-13 22:53:44 +08:00
parent 726de0396b
commit f3715731c4
67 changed files with 915 additions and 1254 deletions

View File

@@ -39,7 +39,6 @@ export const useAppRoute = (app) => {
userId: app.userId,
name: app.name,
intro: app.intro,
app: app.chat?.chatModel,
relatedKbs: kbNames, // 将relatedKbs的id转换为相应的Kb名称
systemPrompt: app.chat?.systemPrompt || '',
temperature: app.chat?.temperature || 0,

View File

@@ -62,12 +62,6 @@ const appSchema = new mongoose.Schema({
avatar: String,
status: String,
intro: String,
chat: {
relatedKbs: [mongoose.Schema.Types.ObjectId],
systemPrompt: String,
temperature: Number,
chatModel: String
},
share: {
topNum: Number,
isShare: Boolean,