mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
Some checks are pending
Deploy doc image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy doc image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy doc image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
* perf: optimize global variables (#2863) * feat: add global variable types * add global variables to debug * fix select dnd * unify InputTypeConfig params * feat: http node url support variables (#2891) * feat: http node url support variables * change to prompt editor * fix: global variables (#2892) * fix global variables * fix type * perf: global variables * perf: workflow delete node error (#2905) * update lock * update 4812 doc * feat: add node course url config (#2897) * feat: add node course url config * change plugin course url * change default doc url * change url store * delete unused code * fix: global variable (#2915) * fix: global variable * add comment * fix: interactive check * locj * perf: debug switch to global tab when click run & global var default reset (#2925) * fix: tool course url * fix: global var default value & wrap variable form (#2926) * fix: add dataset tags not update render (#2927) * feat: tool will save histories * perf: global variables code * perf: FE_DOMAIN config --------- Co-authored-by: heheer <heheer@sealos.io>
452 lines
14 KiB
JSON
452 lines
14 KiB
JSON
{
|
||
"author": "Menghuan1918",
|
||
"version": "488",
|
||
"name": "Doc2X PDF文件(文件)识别",
|
||
"avatar": "plugins/doc2x",
|
||
"intro": "将上传的PDF文件发送至Doc2X进行解析,返回带LaTeX公式的markdown格式的文本",
|
||
"courseUrl": "https://fael3z0zfze.feishu.cn/wiki/Rkc5witXWiJoi5kORd2cofh6nDg?fromScene=spaceOverview",
|
||
"showStatus": true,
|
||
"weight": 10,
|
||
|
||
"isTool": true,
|
||
"templateType": "tools",
|
||
|
||
"workflow": {
|
||
"nodes": [
|
||
{
|
||
"nodeId": "pluginConfig",
|
||
"name": "common:core.module.template.system_config",
|
||
"intro": "",
|
||
"avatar": "core/workflow/template/systemConfig",
|
||
"flowNodeType": "pluginConfig",
|
||
"position": {
|
||
"x": -30.474351356537454,
|
||
"y": -101.45216221730038
|
||
},
|
||
"version": "4811",
|
||
"inputs": [],
|
||
"outputs": []
|
||
},
|
||
{
|
||
"nodeId": "pluginInput",
|
||
"name": "插件开始",
|
||
"intro": "可以配置插件需要哪些输入,利用这些输入来运行插件",
|
||
"avatar": "core/workflow/template/workflowStart",
|
||
"flowNodeType": "pluginInput",
|
||
"showStatus": false,
|
||
"position": {
|
||
"x": 407.2817920483865,
|
||
"y": -101.45216221730038
|
||
},
|
||
"version": "481",
|
||
"inputs": [
|
||
{
|
||
"renderTypeList": ["input"],
|
||
"selectedTypeIndex": 0,
|
||
"valueType": "string",
|
||
"canEdit": true,
|
||
"key": "apikey",
|
||
"label": "apikey",
|
||
"description": "Doc2X的验证密匙,对于个人用户可以从Doc2X官网 - 个人信息 - 身份令牌获得",
|
||
"required": true,
|
||
"toolDescription": "",
|
||
"defaultValue": ""
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"selectedTypeIndex": 0,
|
||
"valueType": "arrayString",
|
||
"canEdit": true,
|
||
"key": "files",
|
||
"label": "files",
|
||
"description": "待处理的PDF文件",
|
||
"required": true,
|
||
"toolDescription": "待处理的PDF文件"
|
||
},
|
||
{
|
||
"renderTypeList": ["switch"],
|
||
"selectedTypeIndex": 0,
|
||
"valueType": "boolean",
|
||
"canEdit": true,
|
||
"key": "ocr",
|
||
"label": "ocr",
|
||
"description": "是否开启对PDF文件内图片的OCR识别,建议开启",
|
||
"required": true,
|
||
"toolDescription": "",
|
||
"defaultValue": true
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"id": "apikey",
|
||
"valueType": "string",
|
||
"key": "apikey",
|
||
"label": "apikey",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"id": "url",
|
||
"valueType": "arrayString",
|
||
"key": "files",
|
||
"label": "files",
|
||
"type": "hidden"
|
||
},
|
||
{
|
||
"id": "formula",
|
||
"valueType": "boolean",
|
||
"key": "ocr",
|
||
"label": "ocr",
|
||
"type": "hidden"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"nodeId": "pluginOutput",
|
||
"name": "插件输出",
|
||
"intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
|
||
"avatar": "core/workflow/template/pluginOutput",
|
||
"flowNodeType": "pluginOutput",
|
||
"showStatus": false,
|
||
"position": {
|
||
"x": 1842.070888321717,
|
||
"y": -101.45216221730038
|
||
},
|
||
"version": "481",
|
||
"inputs": [
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "string",
|
||
"canEdit": true,
|
||
"key": "result",
|
||
"label": "result",
|
||
"description": "处理结果,由文件名以及文档内容组成,多个文件之间由横线分隔开",
|
||
"value": ["zHG5jJBkXmjB", "xWQuEf50F3mr"]
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "string",
|
||
"canEdit": true,
|
||
"key": "failreason",
|
||
"label": "failreason",
|
||
"description": "文件处理失败原因,由文件名以及报错组成,多个文件之间由横线分隔开",
|
||
"value": ["zHG5jJBkXmjB", "yDxzW5CFalGw"]
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "boolean",
|
||
"canEdit": true,
|
||
"key": "success",
|
||
"label": "success",
|
||
"description": "是否全部文件都处理成功,如有没有处理成功的文件,失败原因将会输出在failreason中",
|
||
"value": ["zHG5jJBkXmjB", "m6CJJj7GFud5"]
|
||
}
|
||
],
|
||
"outputs": []
|
||
},
|
||
{
|
||
"nodeId": "zHG5jJBkXmjB",
|
||
"name": "HTTP 请求",
|
||
"intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
|
||
"avatar": "core/workflow/template/httpRequest",
|
||
"flowNodeType": "httpRequest468",
|
||
"showStatus": true,
|
||
"position": {
|
||
"x": 1077.7986740892777,
|
||
"y": -496.9521622173004
|
||
},
|
||
"version": "481",
|
||
"inputs": [
|
||
{
|
||
"key": "system_addInputParam",
|
||
"renderTypeList": ["addInputParam"],
|
||
"valueType": "dynamic",
|
||
"label": "",
|
||
"required": false,
|
||
"description": "common:core.module.input.description.HTTP Dynamic Input",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"arrayAny",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
},
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpMethod",
|
||
"renderTypeList": ["custom"],
|
||
"valueType": "string",
|
||
"label": "",
|
||
"value": "POST",
|
||
"required": true,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpTimeout",
|
||
"renderTypeList": ["custom"],
|
||
"valueType": "number",
|
||
"label": "",
|
||
"value": 30,
|
||
"min": 5,
|
||
"max": 600,
|
||
"required": true,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpReqUrl",
|
||
"renderTypeList": ["hidden"],
|
||
"valueType": "string",
|
||
"label": "",
|
||
"description": "common:core.module.input.description.Http Request Url",
|
||
"placeholder": "https://api.ai.com/getInventory",
|
||
"required": false,
|
||
"value": "Doc2X/FilePDF2text",
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpHeader",
|
||
"renderTypeList": ["custom"],
|
||
"valueType": "any",
|
||
"value": [],
|
||
"label": "",
|
||
"description": "common:core.module.input.description.Http Request Header",
|
||
"placeholder": "common:core.module.input.description.Http Request Header",
|
||
"required": false,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpParams",
|
||
"renderTypeList": ["hidden"],
|
||
"valueType": "any",
|
||
"value": [],
|
||
"label": "",
|
||
"required": false,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpJsonBody",
|
||
"renderTypeList": ["hidden"],
|
||
"valueType": "any",
|
||
"value": "{\n \"apikey\": \"{{apikey}}\",\n \"files\": {{files}},\n \"ocr\": {{ocr}}\n}",
|
||
"label": "",
|
||
"required": false,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpFormBody",
|
||
"renderTypeList": ["hidden"],
|
||
"valueType": "any",
|
||
"value": [],
|
||
"label": "",
|
||
"required": false,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"key": "system_httpContentType",
|
||
"renderTypeList": ["hidden"],
|
||
"valueType": "string",
|
||
"value": "json",
|
||
"label": "",
|
||
"required": false,
|
||
"debugLabel": "",
|
||
"toolDescription": ""
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "string",
|
||
"canEdit": true,
|
||
"key": "apikey",
|
||
"label": "apikey",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"arrayAny",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
},
|
||
"required": true,
|
||
"value": ["pluginInput", "apikey"]
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "arrayString",
|
||
"canEdit": true,
|
||
"key": "files",
|
||
"label": "files",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"arrayAny",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
},
|
||
"required": true,
|
||
"value": ["pluginInput", "url"]
|
||
},
|
||
{
|
||
"renderTypeList": ["reference"],
|
||
"valueType": "boolean",
|
||
"canEdit": true,
|
||
"key": "ocr",
|
||
"label": "ocr",
|
||
"customInputConfig": {
|
||
"selectValueTypeList": [
|
||
"string",
|
||
"number",
|
||
"boolean",
|
||
"object",
|
||
"arrayString",
|
||
"arrayNumber",
|
||
"arrayBoolean",
|
||
"arrayObject",
|
||
"arrayAny",
|
||
"any",
|
||
"chatHistory",
|
||
"datasetQuote",
|
||
"dynamic",
|
||
"selectApp",
|
||
"selectDataset"
|
||
],
|
||
"showDescription": false,
|
||
"showDefaultValue": true
|
||
},
|
||
"required": true,
|
||
"value": ["pluginInput", "formula"]
|
||
}
|
||
],
|
||
"outputs": [
|
||
{
|
||
"id": "error",
|
||
"key": "error",
|
||
"label": "workflow:request_error",
|
||
"description": "HTTP请求错误信息,成功时返回空",
|
||
"valueType": "object",
|
||
"type": "static"
|
||
},
|
||
{
|
||
"id": "httpRawResponse",
|
||
"key": "httpRawResponse",
|
||
"required": true,
|
||
"label": "workflow:raw_response",
|
||
"description": "HTTP请求的原始响应。只能接受字符串或JSON类型响应数据。",
|
||
"valueType": "any",
|
||
"type": "static"
|
||
},
|
||
{
|
||
"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": false
|
||
}
|
||
},
|
||
{
|
||
"id": "xWQuEf50F3mr",
|
||
"valueType": "string",
|
||
"type": "dynamic",
|
||
"key": "result",
|
||
"label": "result"
|
||
},
|
||
{
|
||
"id": "m6CJJj7GFud5",
|
||
"valueType": "boolean",
|
||
"type": "dynamic",
|
||
"key": "success",
|
||
"label": "success"
|
||
},
|
||
{
|
||
"id": "yDxzW5CFalGw",
|
||
"valueType": "string",
|
||
"type": "dynamic",
|
||
"key": "failreason",
|
||
"label": "failreason"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"edges": [
|
||
{
|
||
"source": "pluginInput",
|
||
"target": "zHG5jJBkXmjB",
|
||
"sourceHandle": "pluginInput-source-right",
|
||
"targetHandle": "zHG5jJBkXmjB-target-left"
|
||
},
|
||
{
|
||
"source": "zHG5jJBkXmjB",
|
||
"target": "pluginOutput",
|
||
"sourceHandle": "zHG5jJBkXmjB-source-right",
|
||
"targetHandle": "pluginOutput-target-left"
|
||
}
|
||
]
|
||
}
|
||
}
|