feat: model share market

This commit is contained in:
archer
2023-04-27 23:41:42 +08:00
parent 46eb96c72e
commit 3b8e5d2738
34 changed files with 574 additions and 199 deletions

View File

@@ -14,7 +14,7 @@ const ModelSchema = new Schema({
},
avatar: {
type: String,
default: '/imgs/modelAvatar.png'
default: '/icon/logo.png'
},
systemPrompt: {
// 系统提示词
@@ -43,6 +43,26 @@ const ModelSchema = new Schema({
default: ModelVectorSearchModeEnum.hightSimilarity
}
},
share: {
isShare: {
type: Boolean,
default: false
},
isShareDetail: {
// share model detail info. false: just show name and intro
type: Boolean,
default: false
},
intro: {
type: String,
default: '',
maxlength: 150
},
collection: {
type: Number,
default: 0
}
},
service: {
chatModel: {
// 聊天时使用的模型