mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * perf: workflow ux * system config * Newflow (#89) * docs: Add doc for Xinference (#1266) Signed-off-by: Carson Yang <yangchuansheng33@gmail.com> * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * perf: workflow ux * system config * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * rename code * move code * update flow * input type selector * perf: workflow runtime * feat: node adapt newflow * feat: adapt plugin * feat: 360 connection * check workflow * perf: flow 性能 * change plugin input type (#81) * change plugin input type * plugin label mode * perf: nodecard * debug * perf: debug ui * connection ui * change workflow ui (#82) * feat: workflow debug * adapt openAPI for new workflow (#83) * adapt openAPI for new workflow * i18n * perf: plugin debug * plugin input ui * delete * perf: global variable select * fix rebase * perf: workflow performance * feat: input render type icon * input icon * adapt flow (#84) * adapt newflow * temp * temp * fix * feat: app schedule trigger * feat: app schedule trigger * perf: schedule ui * feat: ioslatevm run js code * perf: workflow varialbe table ui * feat: adapt simple mode * feat: adapt input params * output * feat: adapt tamplate * fix: ts * add if-else module (#86) * perf: worker * if else node * perf: tiktoken worker * fix: ts * perf: tiktoken * fix if-else node (#87) * fix if-else node * type * fix * perf: audio render * perf: Parallel worker * log * perf: if else node * adapt plugin * prompt * perf: reference ui * reference ui * handle ux * template ui and plugin tool * adapt v1 workflow * adapt v1 workflow completions * perf: time variables * feat: workflow keyboard shortcuts * adapt v1 workflow * update workflow example doc (#88) * fix: simple mode select tool --------- Signed-off-by: Carson Yang <yangchuansheng33@gmail.com> Co-authored-by: Carson Yang <yangchuansheng33@gmail.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com> * doc * perf: extract node * extra node field * update plugin version * doc * variable * change doc & fix prompt editor (#90) * fold workflow code * value type label --------- Signed-off-by: Carson Yang <yangchuansheng33@gmail.com> Co-authored-by: Carson Yang <yangchuansheng33@gmail.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
244 lines
6.7 KiB
JSON
244 lines
6.7 KiB
JSON
{
|
|
"author": "FastGPT Team",
|
|
"templateType": "tools",
|
|
"name": "文本加工",
|
|
"avatar": "/imgs/workflow/textEditor.svg",
|
|
"intro": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。",
|
|
"showStatus": false,
|
|
"isTool": false,
|
|
"weight": 100,
|
|
"nodes": [
|
|
{
|
|
"nodeId": "lmpb9v2lo2lk",
|
|
"name": "定义插件输入",
|
|
"intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
|
|
"avatar": "/imgs/workflow/input.png",
|
|
"flowNodeType": "pluginInput",
|
|
"showStatus": false,
|
|
"position": {
|
|
"x": 616.4226348688949,
|
|
"y": -165.05298493910115
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "system_addInputParam",
|
|
"valueType": "dynamic",
|
|
"label": "动态外部数据",
|
|
"renderTypeList": ["addInputParam"],
|
|
"required": false,
|
|
"description": "",
|
|
"canEdit": true,
|
|
"value": "",
|
|
"editField": {
|
|
"key": true
|
|
},
|
|
"dynamicParamDefaultValue": {
|
|
"inputType": "reference",
|
|
"valueType": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
{
|
|
"key": "文本",
|
|
"valueType": "string",
|
|
"label": "文本",
|
|
"renderTypeList": ["textarea"],
|
|
"required": true,
|
|
"description": "",
|
|
"canEdit": true,
|
|
"value": "",
|
|
"editField": {
|
|
"key": true
|
|
},
|
|
"maxLength": "",
|
|
"dynamicParamDefaultValue": {
|
|
"inputType": "reference",
|
|
"valueType": "string",
|
|
"required": true
|
|
}
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "ILc8GS7iU53M",
|
|
"key": "文本",
|
|
"valueType": "string",
|
|
"label": "文本",
|
|
"type": "static"
|
|
},
|
|
{
|
|
"id": "2LCxDnOSculb",
|
|
"key": "system_addInputParam",
|
|
"valueType": "dynamic",
|
|
"label": "动态外部数据",
|
|
"type": "static"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeId": "i7uow4wj2wdp",
|
|
"name": "定义插件输出",
|
|
"intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
|
|
"avatar": "/imgs/workflow/output.png",
|
|
"flowNodeType": "pluginOutput",
|
|
"showStatus": false,
|
|
"position": {
|
|
"x": 1607.7142331269126,
|
|
"y": -151.8669210746189
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "text",
|
|
"valueType": "string",
|
|
"label": "text",
|
|
"renderTypeList": ["reference"],
|
|
"required": false,
|
|
"description": "",
|
|
"canEdit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"description": true,
|
|
"valueType": true
|
|
},
|
|
"value": ["CRT7oIEU8v2P", "vooswj3VxKW8"]
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "HdIl1GWi0tnc",
|
|
"key": "text",
|
|
"valueType": "string",
|
|
"label": "text",
|
|
"type": "static"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"nodeId": "CRT7oIEU8v2P",
|
|
"name": "HTTP 请求",
|
|
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
|
|
"avatar": "/imgs/workflow/http.png",
|
|
"flowNodeType": "httpRequest468",
|
|
"showStatus": true,
|
|
"position": {
|
|
"x": 1070.8458389994719,
|
|
"y": -415.09022555407836
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "system_addInputParam",
|
|
"renderTypeList": ["addInputParam"],
|
|
"valueType": "dynamic",
|
|
"label": "",
|
|
"required": false,
|
|
"description": "core.module.input.description.HTTP Dynamic Input",
|
|
"editField": {
|
|
"key": true,
|
|
"valueType": true
|
|
},
|
|
"value": ["lmpb9v2lo2lk", "2LCxDnOSculb"]
|
|
},
|
|
{
|
|
"key": "text",
|
|
"valueType": "string",
|
|
"label": "text",
|
|
"renderTypeList": ["reference"],
|
|
"description": "",
|
|
"canEdit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"valueType": true
|
|
},
|
|
"value": ["lmpb9v2lo2lk", "ILc8GS7iU53M"]
|
|
},
|
|
{
|
|
"key": "system_httpMethod",
|
|
"renderTypeList": ["custom"],
|
|
"valueType": "string",
|
|
"label": "",
|
|
"value": "POST",
|
|
"required": true
|
|
},
|
|
{
|
|
"key": "system_httpReqUrl",
|
|
"renderTypeList": ["hidden"],
|
|
"valueType": "string",
|
|
"label": "",
|
|
"description": "core.module.input.description.Http Request Url",
|
|
"placeholder": "https://api.ai.com/getInventory",
|
|
"required": false,
|
|
"value": "/api/plugins/textEditor"
|
|
},
|
|
{
|
|
"key": "system_httpHeader",
|
|
"renderTypeList": ["custom"],
|
|
"valueType": "any",
|
|
"value": [],
|
|
"label": "",
|
|
"description": "core.module.input.description.Http Request Header",
|
|
"placeholder": "core.module.input.description.Http Request Header",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "system_httpParams",
|
|
"renderTypeList": ["hidden"],
|
|
"valueType": "any",
|
|
"value": [],
|
|
"label": "",
|
|
"required": false
|
|
},
|
|
{
|
|
"key": "system_httpJsonBody",
|
|
"renderTypeList": ["hidden"],
|
|
"valueType": "any",
|
|
"value": "{\r\n \"text\":\"{{text}}\",\r\n \"system_addInputParam\": {{system_addInputParam}}\r\n}",
|
|
"label": "",
|
|
"required": false
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"id": "system_addOutputParam",
|
|
"key": "system_addOutputParam",
|
|
"type": "dynamic",
|
|
"valueType": "dynamic",
|
|
"label": "",
|
|
"editField": {
|
|
"key": true,
|
|
"valueType": true
|
|
}
|
|
},
|
|
{
|
|
"id": "httpRawResponse",
|
|
"key": "httpRawResponse",
|
|
"label": "原始响应",
|
|
"description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。",
|
|
"valueType": "any",
|
|
"type": "static"
|
|
},
|
|
{
|
|
"id": "vooswj3VxKW8",
|
|
"type": "dynamic",
|
|
"key": "text",
|
|
"valueType": "string",
|
|
"label": "text"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"source": "lmpb9v2lo2lk",
|
|
"target": "CRT7oIEU8v2P",
|
|
"sourceHandle": "lmpb9v2lo2lk-source-right",
|
|
"targetHandle": "CRT7oIEU8v2P-target-left"
|
|
},
|
|
{
|
|
"source": "CRT7oIEU8v2P",
|
|
"target": "i7uow4wj2wdp",
|
|
"sourceHandle": "CRT7oIEU8v2P-source-right",
|
|
"targetHandle": "i7uow4wj2wdp-target-left"
|
|
}
|
|
]
|
|
}
|