mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00

* feat: plugin support upload files (#2716) * feat: plugin support file upload * file history * fix history & chattest * chore: code * plugin config icon & file preview padding * perf: undefined fn * fix: plugin file numbers & plugin template add config (#2743) * perf: run plugin without human message (#2749) * perf: run plugin without human message * fix build * fix build * rename node * perf: ui * perf: plugin rerun with last params & plugin log add file (#2755) * perf: plugin run with last params & plugin log add file * delete console * perf: plugin refresh code * fix: ts --------- Co-authored-by: heheer <heheer@sealos.io>
315 lines
9.2 KiB
JSON
315 lines
9.2 KiB
JSON
{
|
||
"author": "FastGPT",
|
||
"version": "481",
|
||
"name": "文本加工",
|
||
"avatar": "/imgs/workflow/textEditor.svg",
|
||
"intro": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。",
|
||
"showStatus": false,
|
||
"weight": 100,
|
||
|
||
"isTool": false,
|
||
"templateType": "tools",
|
||
|
||
"workflow": {
|
||
"nodes": [
|
||
{
|
||
"nodeId": "lmpb9v2lo2lk",
|
||
"name": "插件开始",
|
||
"intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
|
||
"avatar": "/imgs/workflow/input.png",
|
||
"flowNodeType": "pluginInput",
|
||
"showStatus": false,
|
||
"position": {
|
||
"x": 449.3089648771014,
|
||
"y": -139.7660480324482
|
||
},
|
||
"version": "481",
|
||
"inputs": [
|
||
{
|
||
"key": "system_addInputParam",
|
||
"valueType": "dynamic",
|
||
"label": "自定义输入变量",
|
||
"renderTypeList": ["addInputParam"],
|
||
"required": false,
|
||
"description": "",
|
||
"canEdit": true,
|
||
"value": "",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": ["string"],
|
||
"showDescription": false,
|
||
"showDefaultValue": false
|
||
}
|
||
},
|
||
{
|
||
"key": "文本",
|
||
"valueType": "string",
|
||
"label": "文本",
|
||
"renderTypeList": ["textarea"],
|
||
"required": true,
|
||
"description": "",
|
||
"canEdit": true,
|
||
"value": "",
|
||
"maxLength": ""
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"id": "ILc8GS7iU53M",
|
||
"key": "文本",
|
||
"valueType": "string",
|
||
"label": "文本",
|
||
"type": "static"
|
||
},
|
||
{
|
||
"id": "2LCxDnOSculb",
|
||
"key": "system_addInputParam",
|
||
"valueType": "dynamic",
|
||
"label": "system_addInputParam",
|
||
"type": "static"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"nodeId": "i7uow4wj2wdp",
|
||
"name": "插件输出",
|
||
"intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
|
||
"avatar": "/imgs/workflow/output.png",
|
||
"flowNodeType": "pluginOutput",
|
||
"showStatus": false,
|
||
"position": {
|
||
"x": 1607.7142331269126,
|
||
"y": -151.8669210746189
|
||
},
|
||
"version": "481",
|
||
"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
|
||
},
|
||
"version": "486",
|
||
"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"],
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
}
|
||
},
|
||
{
|
||
"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/v2"
|
||
},
|
||
{
|
||
"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 \"customInputs\": {{customInputs}}\r\n}",
|
||
"label": "",
|
||
"required": false
|
||
},
|
||
{
|
||
"key": "text",
|
||
"valueType": "string",
|
||
"label": "text",
|
||
"renderTypeList": ["reference"],
|
||
"description": "",
|
||
"canEdit": true,
|
||
"editField": {
|
||
"key": true,
|
||
"valueType": true
|
||
},
|
||
"value": ["lmpb9v2lo2lk", "ILc8GS7iU53M"]
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "dynamic",
|
||
"canEdit": true,
|
||
"key": "customInputs",
|
||
"label": "customInputs",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
},
|
||
"required": true,
|
||
"value": ["lmpb9v2lo2lk", "2LCxDnOSculb"]
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"id": "system_addOutputParam",
|
||
"key": "system_addOutputParam",
|
||
"type": "dynamic",
|
||
"valueType": "dynamic",
|
||
"label": "",
|
||
"customFieldConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
}
|
||
},
|
||
{
|
||
"id": "error",
|
||
"key": "error",
|
||
"label": "请求错误",
|
||
"description": "HTTP请求错误信息,成功时返回空",
|
||
"valueType": "object",
|
||
"type": "static"
|
||
},
|
||
{
|
||
"id": "httpRawResponse",
|
||
"key": "httpRawResponse",
|
||
"label": "原始响应",
|
||
"required": true,
|
||
"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"
|
||
}
|
||
]
|
||
}
|
||
}
|