mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-06 01:02:54 +08:00
feat: model related kb
This commit is contained in:
Vendored
+2
-2
@@ -1,5 +1,6 @@
|
||||
import { ModelStatusEnum } from '@/constants/model';
|
||||
import type { ModelSchema } from './mongoSchema';
|
||||
import type { ModelSchema, kbSchema } from './mongoSchema';
|
||||
import { ChatModelType, ModelVectorSearchModeEnum } from '@/constants/model';
|
||||
|
||||
export type ModelListItemType = {
|
||||
_id: string;
|
||||
@@ -13,7 +14,6 @@ export interface ModelUpdateParams {
|
||||
avatar: string;
|
||||
chat: ModelSchema['chat'];
|
||||
share: ModelSchema['share'];
|
||||
security: ModelSchema['security'];
|
||||
}
|
||||
|
||||
export interface ShareModelItem {
|
||||
|
||||
Vendored
+1
-8
@@ -38,7 +38,7 @@ export interface ModelSchema {
|
||||
status: `${ModelStatusEnum}`;
|
||||
updateTime: number;
|
||||
chat: {
|
||||
useKb: boolean;
|
||||
relatedKbs: string[];
|
||||
searchMode: `${ModelVectorSearchModeEnum}`;
|
||||
systemPrompt: string;
|
||||
temperature: number;
|
||||
@@ -50,13 +50,6 @@ export interface ModelSchema {
|
||||
intro: string;
|
||||
collection: number;
|
||||
};
|
||||
security: {
|
||||
domain: string[];
|
||||
contextMaxLen: number;
|
||||
contentMaxLen: number;
|
||||
expiredTime: number;
|
||||
maxLoadAmount: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ModelPopulate extends ModelSchema {
|
||||
|
||||
Reference in New Issue
Block a user