feat: 摘要拆分

This commit is contained in:
archer
2023-03-26 22:09:59 +08:00
parent 888642f154
commit 3e4487ad9a
20 changed files with 397 additions and 83 deletions

View File

@@ -1,5 +1,6 @@
import type { ChatItemType } from './chat';
import { ModelStatusEnum, TrainingStatusEnum, ChatModelNameEnum } from '@/constants/model';
import type { DataType } from './data';
export type ServiceName = 'openai';
@@ -102,19 +103,21 @@ export interface DataSchema {
userId: string;
name: string;
createTime: string;
type: DataType;
}
export interface DataItemSchema {
_id: string;
userId: string;
dataId: string;
type: DataType;
times: number;
temperature: number;
text: string;
rawResponse: string[];
result: {
q: string;
a: string;
q?: string;
a?: string;
abstract?: string;
}[];
status: 0 | 1 | 2;
}