feat: content check
This commit is contained in:
20
src/types/plugin.d.ts
vendored
20
src/types/plugin.d.ts
vendored
@@ -1,10 +1,12 @@
|
||||
import type { kbSchema } from './mongoSchema';
|
||||
import { PluginTypeEnum } from '@/constants/plugin';
|
||||
|
||||
/* kb type */
|
||||
export interface KbItemType extends kbSchema {
|
||||
totalData: number;
|
||||
tags: string;
|
||||
}
|
||||
|
||||
export interface KbDataItemType {
|
||||
id: string;
|
||||
status: 'waiting' | 'ready';
|
||||
@@ -13,3 +15,21 @@ export interface KbDataItemType {
|
||||
kbId: string;
|
||||
userId: string;
|
||||
}
|
||||
|
||||
/* plugin */
|
||||
export interface PluginConfig {
|
||||
name: string;
|
||||
desc: string;
|
||||
url: string;
|
||||
category: `${PluginTypeEnum}`;
|
||||
uniPrice: 22; // 1k token
|
||||
params: [
|
||||
{
|
||||
type: '';
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
export type TextPluginRequestParams = {
|
||||
input: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user