mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 03:35:36 +00:00
63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
import {
|
|
type AppTTSConfigType,
|
|
type AppFileSelectConfigType,
|
|
type AppWhisperConfigType,
|
|
type AppAutoExecuteConfigType,
|
|
type AppQGConfigType
|
|
} from './type';
|
|
|
|
export enum AppTypeEnum {
|
|
folder = 'folder',
|
|
simple = 'simple',
|
|
workflow = 'advanced',
|
|
plugin = 'plugin',
|
|
httpPlugin = 'httpPlugin',
|
|
toolSet = 'toolSet',
|
|
tool = 'tool'
|
|
}
|
|
|
|
export const AppFolderTypeList = [AppTypeEnum.folder, AppTypeEnum.httpPlugin];
|
|
|
|
export const defaultTTSConfig: AppTTSConfigType = { type: 'web' };
|
|
|
|
export const defaultAutoExecuteConfig: AppAutoExecuteConfigType = {
|
|
open: false,
|
|
defaultPrompt: ''
|
|
};
|
|
|
|
export const defaultWhisperConfig: AppWhisperConfigType = {
|
|
open: false,
|
|
autoSend: false,
|
|
autoTTSResponse: false
|
|
};
|
|
|
|
export const defaultQGConfig: AppQGConfigType = {
|
|
open: false,
|
|
model: 'gpt-4o-mini',
|
|
customPrompt: ''
|
|
};
|
|
|
|
export const defaultChatInputGuideConfig = {
|
|
open: false,
|
|
textList: [],
|
|
customUrl: ''
|
|
};
|
|
|
|
export const defaultAppSelectFileConfig: AppFileSelectConfigType = {
|
|
canSelectFile: false,
|
|
canSelectImg: false,
|
|
maxFiles: 10
|
|
};
|
|
|
|
export enum AppTemplateTypeEnum {
|
|
recommendation = 'recommendation',
|
|
writing = 'writing',
|
|
imageGeneration = 'image-generation',
|
|
webSearch = 'web-search',
|
|
roleplay = 'roleplay',
|
|
officeServices = 'office-services',
|
|
|
|
// special type
|
|
contribute = 'contribute'
|
|
}
|