perf: code
This commit is contained in:
4
src/types/mongoSchema.d.ts
vendored
4
src/types/mongoSchema.d.ts
vendored
@@ -8,7 +8,7 @@ import {
|
||||
} from '@/constants/model';
|
||||
import type { DataType } from './data';
|
||||
import { BillTypeEnum } from '@/constants/user';
|
||||
import { TrainingTypeEnum } from '@/constants/plugin';
|
||||
import { TrainingModeEnum } from '@/constants/plugin';
|
||||
|
||||
export interface UserModelSchema {
|
||||
_id: string;
|
||||
@@ -74,7 +74,7 @@ export interface TrainingDataSchema {
|
||||
userId: string;
|
||||
kbId: string;
|
||||
lockTime: Date;
|
||||
mode: `${TrainingTypeEnum}`;
|
||||
mode: `${TrainingModeEnum}`;
|
||||
prompt: string;
|
||||
q: string;
|
||||
a: string;
|
||||
|
||||
8
src/types/pg.d.ts
vendored
8
src/types/pg.d.ts
vendored
@@ -1,11 +1,7 @@
|
||||
import { ModelDataStatusEnum } from '@/constants/model';
|
||||
|
||||
export interface PgKBDataItemType {
|
||||
id: string;
|
||||
q: string;
|
||||
a: string;
|
||||
status: `${ModelDataStatusEnum}`;
|
||||
// model_id: string;
|
||||
// user_id: string;
|
||||
// kb_id: string;
|
||||
user_id: string;
|
||||
kb_id: string;
|
||||
}
|
||||
|
||||
1
src/types/plugin.d.ts
vendored
1
src/types/plugin.d.ts
vendored
@@ -8,7 +8,6 @@ export interface KbItemType extends kbSchema {
|
||||
|
||||
export interface KbDataItemType {
|
||||
id: string;
|
||||
status: 'waiting' | 'ready';
|
||||
q: string; // 提问词
|
||||
a: string; // 原文
|
||||
kbId: string;
|
||||
|
||||
Reference in New Issue
Block a user