perf: model framwork

This commit is contained in:
archer
2023-04-29 15:55:47 +08:00
parent cd9acab938
commit 78762498eb
30 changed files with 649 additions and 757 deletions

View File

@@ -31,15 +31,17 @@ export interface AuthCodeSchema {
export interface ModelSchema {
_id: string;
userId: string;
name: string;
avatar: string;
systemPrompt: string;
userId: string;
status: `${ModelStatusEnum}`;
updateTime: number;
temperature: number;
search: {
mode: `${ModelVectorSearchModeEnum}`;
chat: {
useKb: boolean;
searchMode: `${ModelVectorSearchModeEnum}`;
systemPrompt: string;
temperature: number;
chatModel: `${ChatModelEnum}`; // 聊天时用的模型,训练后就是训练的模型
};
share: {
isShare: boolean;
@@ -47,10 +49,6 @@ export interface ModelSchema {
intro: string;
collection: number;
};
service: {
chatModel: `${ChatModelEnum}`; // 聊天时用的模型,训练后就是训练的模型
modelName: `${ModelNameEnum}`; // 底层模型名称,不会变
};
security: {
domain: string[];
contextMaxLen: number;