forked from labring/FastGPT
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix chunk index; error page text * feat: dataset process Integral prediction * feat: stand plan field * feat: sub plan limit * perf: index * query extension * perf: share link push app name * perf: plan point unit * perf: get sub plan * perf: account page
- Loading branch information
Showing
29 changed files
with
688 additions
and
2,761 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
packages/global/core/module/template/system/queryExtension.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { | ||
FlowNodeInputTypeEnum, | ||
FlowNodeOutputTypeEnum, | ||
FlowNodeTypeEnum | ||
} from '../../node/constant'; | ||
import { FlowModuleTemplateType } from '../../type'; | ||
import { | ||
ModuleIOValueTypeEnum, | ||
ModuleInputKeyEnum, | ||
ModuleOutputKeyEnum, | ||
ModuleTemplateTypeEnum | ||
} from '../../constants'; | ||
import { | ||
Input_Template_History, | ||
Input_Template_Switch, | ||
Input_Template_UserChatInput | ||
} from '../input'; | ||
import { Output_Template_UserChatInput } from '../output'; | ||
|
||
export const AiQueryExtension: FlowModuleTemplateType = { | ||
id: FlowNodeTypeEnum.chatNode, | ||
templateType: ModuleTemplateTypeEnum.other, | ||
flowType: FlowNodeTypeEnum.queryExtension, | ||
avatar: '/imgs/module/cfr.svg', | ||
name: 'core.module.template.Query extension', | ||
intro: 'core.module.template.Query extension intro', | ||
showStatus: true, | ||
inputs: [ | ||
Input_Template_Switch, | ||
{ | ||
key: ModuleInputKeyEnum.aiModel, | ||
type: FlowNodeInputTypeEnum.selectLLMModel, | ||
label: 'core.module.input.label.aiModel', | ||
required: true, | ||
valueType: ModuleIOValueTypeEnum.string, | ||
showTargetInApp: false, | ||
showTargetInPlugin: false | ||
}, | ||
{ | ||
key: ModuleInputKeyEnum.aiSystemPrompt, | ||
type: FlowNodeInputTypeEnum.textarea, | ||
label: 'core.app.edit.Query extension background prompt', | ||
max: 300, | ||
valueType: ModuleIOValueTypeEnum.string, | ||
description: 'core.app.edit.Query extension background tip', | ||
placeholder: 'core.module.QueryExtension.placeholder', | ||
showTargetInApp: true, | ||
showTargetInPlugin: true | ||
}, | ||
Input_Template_History, | ||
Input_Template_UserChatInput | ||
], | ||
outputs: [ | ||
Output_Template_UserChatInput, | ||
{ | ||
key: ModuleOutputKeyEnum.text, | ||
label: 'core.module.output.label.query extension result', | ||
description: 'core.module.output.description.query extension result', | ||
valueType: ModuleIOValueTypeEnum.string, | ||
type: FlowNodeOutputTypeEnum.source, | ||
targets: [] | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.