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

@@ -5,6 +5,7 @@ export interface ModelUpdateParams {
systemPrompt: string;
temperature: number;
search: ModelSchema['search'];
share: ModelSchema['share'];
service: ModelSchema['service'];
security: ModelSchema['security'];
}
@@ -17,3 +18,11 @@ export interface ModelDataItemType {
modelId: string;
userId: string;
}
export interface ShareModelItem {
_id: string;
avatar: string;
name: string;
userId: string;
share: ModelSchema['share'];
}

View File

@@ -41,6 +41,12 @@ export interface ModelSchema {
search: {
mode: `${ModelVectorSearchModeEnum}`;
};
share: {
isShare: boolean;
isShareDetail: boolean;
intro: string;
collection: number;
};
service: {
chatModel: `${ChatModelEnum}`; // 聊天时用的模型,训练后就是训练的模型
modelName: `${ModelNameEnum}`; // 底层模型名称,不会变