feat: 模型介绍和温度调整。完善聊天页提示
This commit is contained in:
40
src/types/model.d.ts
vendored
40
src/types/model.d.ts
vendored
@@ -1,40 +1,10 @@
|
||||
import { ModelStatusEnum } from '@/constants/model';
|
||||
export interface ModelType {
|
||||
_id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
avatar: string;
|
||||
status: `${ModelStatusEnum}`;
|
||||
updateTime: Date;
|
||||
trainingTimes: number;
|
||||
systemPrompt: string;
|
||||
service: {
|
||||
company: 'openai'; // 关联的厂商
|
||||
trainId: string; // 训练时需要的ID
|
||||
chatModel: string; // 聊天时用的模型
|
||||
modelName: string; // 关联的模型
|
||||
};
|
||||
security: {
|
||||
domain: string[];
|
||||
contentMaxLen: number;
|
||||
contextMaxLen: number;
|
||||
expiredTime: number;
|
||||
maxLoadAmount: number;
|
||||
};
|
||||
}
|
||||
|
||||
import type { ModelSchema } from './mongoSchema';
|
||||
export interface ModelUpdateParams {
|
||||
name: string;
|
||||
systemPrompt: string;
|
||||
service: {
|
||||
company: 'openai'; // 关联的厂商
|
||||
modelName: string; // 关联的模型
|
||||
};
|
||||
security: {
|
||||
domain: string[];
|
||||
contentMaxLen: number;
|
||||
contextMaxLen: number;
|
||||
expiredTime: number;
|
||||
maxLoadAmount: number;
|
||||
};
|
||||
intro: string;
|
||||
temperature: number;
|
||||
service: ModelSchema.service;
|
||||
security: ModelSchema.security;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user