labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.49k stars 4.69k forks source link

插件调试参数与插件本身的参数不一致 #1488

Closed bincooo closed 5 months ago

bincooo commented 5 months ago

例行检查

你的版本

问题描述, 日志截图 RT, 参数输入缺失:

Screenshot 2024-05-15 at 08 26 47

复现步骤

预期结果

相关截图

c121914yu commented 5 months ago

确实,现在只识别变量作为 debug 参数

bincooo commented 5 months ago

@c121914yu 顺带一提,那个变量更新插件如果是chekbox,原值为true,如果想改为false,则不生效

Screenshot 2024-05-15 at 09 49 36 Screenshot 2024-05-15 at 09 57 12
newfish-cmyk commented 5 months ago

@c121914yu 顺带一提,那个变量更新插件如果是chekbox,原值为true,如果想改为false,则不生效 Screenshot 2024-05-15 at 09 49 36 Screenshot 2024-05-15 at 09 57 12

image

好像没复现

bincooo commented 5 months ago

@newfish-cmyk 抱歉,我也复现不了了😅

bincooo commented 5 months ago

@newfish-cmyk 哦,我点了两下那个checkbox,就出现了,你试试

{
  "nodes": [
    {
      "nodeId": "u573fjeevm8v",
      "name": "自定义插件输入",
      "intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
      "avatar": "/imgs/workflow/input.png",
      "flowNodeType": "pluginInput",
      "showStatus": false,
      "position": {
        "x": 134.77526762822555,
        "y": -121.06191783178224
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "switch"
          ],
          "required": true,
          "description": "",
          "canEdit": true,
          "value": true,
          "editField": {
            "key": true
          },
          "maxLength": "",
          "dynamicParamDefaultValue": {
            "inputType": "reference",
            "valueType": "string",
            "required": true
          }
        }
      ],
      "outputs": [
        {
          "id": "yBmWibcXT0wp",
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "io9uqucug9af",
      "name": "自定义插件输出",
      "intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
      "avatar": "/imgs/workflow/output.png",
      "flowNodeType": "pluginOutput",
      "showStatus": false,
      "position": {
        "x": 1814.0346435424676,
        "y": 27.59648082007898
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "reference"
          ],
          "required": false,
          "description": "",
          "canEdit": true,
          "editField": {
            "key": true,
            "description": true,
            "valueType": true
          },
          "value": [
            "u573fjeevm8v",
            "yBmWibcXT0wp"
          ]
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "amXeqwTAsOlC",
      "name": "判断器",
      "intro": "根据一定的条件,执行不同的分支。",
      "avatar": "/imgs/workflow/ifElse.svg",
      "flowNodeType": "ifElseNode",
      "showStatus": true,
      "position": {
        "x": 618.6600464624444,
        "y": -197.45465031469365
      },
      "inputs": [
        {
          "key": "ifElseList",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": [
            {
              "condition": "AND",
              "list": [
                {
                  "variable": [
                    "kNLuS6kgFmuw",
                    "mDkJns6K4ye6"
                  ],
                  "condition": "equalTo",
                  "value": "false"
                }
              ]
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "ifElseResult",
          "key": "ifElseResult",
          "label": "判断结果",
          "valueType": "string",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "ltu4TNVaP9s7",
      "name": "变量更新",
      "intro": "可以更新指定节点的输出值或更新全局变量",
      "avatar": "/imgs/workflow/variable.png",
      "flowNodeType": "variableUpdate",
      "showStatus": true,
      "position": {
        "x": 869.9429728352834,
        "y": 221.21370149856193
      },
      "inputs": [
        {
          "key": "updateList",
          "valueType": "any",
          "label": "",
          "renderTypeList": [
            "hidden"
          ],
          "editField": {
            "key": true,
            "valueType": true
          },
          "value": [
            {
              "variable": [
                "u573fjeevm8v",
                "yBmWibcXT0wp"
              ],
              "value": [
                "",
                "false"
              ],
              "renderType": "input"
            }
          ]
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "amXeqwTAsOlC",
      "target": "io9uqucug9af",
      "sourceHandle": "amXeqwTAsOlC-source-IF",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "amXeqwTAsOlC",
      "target": "ltu4TNVaP9s7",
      "sourceHandle": "amXeqwTAsOlC-source-ELSE",
      "targetHandle": "ltu4TNVaP9s7-target-top"
    },
    {
      "source": "ltu4TNVaP9s7",
      "target": "io9uqucug9af",
      "sourceHandle": "ltu4TNVaP9s7-source-right",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "u573fjeevm8v",
      "target": "amXeqwTAsOlC",
      "sourceHandle": "u573fjeevm8v-source-right",
      "targetHandle": "amXeqwTAsOlC-target-left"
    }
  ]
}
newfish-cmyk commented 5 months ago

@newfish-cmyk 哦,我点了两下那个checkbox,就出现了,你试试

{
  "nodes": [
    {
      "nodeId": "u573fjeevm8v",
      "name": "自定义插件输入",
      "intro": "自定义配置外部输入,使用插件时,仅暴露自定义配置的输入",
      "avatar": "/imgs/workflow/input.png",
      "flowNodeType": "pluginInput",
      "showStatus": false,
      "position": {
        "x": 134.77526762822555,
        "y": -121.06191783178224
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "switch"
          ],
          "required": true,
          "description": "",
          "canEdit": true,
          "value": true,
          "editField": {
            "key": true
          },
          "maxLength": "",
          "dynamicParamDefaultValue": {
            "inputType": "reference",
            "valueType": "string",
            "required": true
          }
        }
      ],
      "outputs": [
        {
          "id": "yBmWibcXT0wp",
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "io9uqucug9af",
      "name": "自定义插件输出",
      "intro": "自定义配置外部输出,使用插件时,仅暴露自定义配置的输出",
      "avatar": "/imgs/workflow/output.png",
      "flowNodeType": "pluginOutput",
      "showStatus": false,
      "position": {
        "x": 1814.0346435424676,
        "y": 27.59648082007898
      },
      "inputs": [
        {
          "key": "value",
          "valueType": "boolean",
          "label": "value",
          "renderTypeList": [
            "reference"
          ],
          "required": false,
          "description": "",
          "canEdit": true,
          "editField": {
            "key": true,
            "description": true,
            "valueType": true
          },
          "value": [
            "u573fjeevm8v",
            "yBmWibcXT0wp"
          ]
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "amXeqwTAsOlC",
      "name": "判断器",
      "intro": "根据一定的条件,执行不同的分支。",
      "avatar": "/imgs/workflow/ifElse.svg",
      "flowNodeType": "ifElseNode",
      "showStatus": true,
      "position": {
        "x": 618.6600464624444,
        "y": -197.45465031469365
      },
      "inputs": [
        {
          "key": "ifElseList",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": [
            {
              "condition": "AND",
              "list": [
                {
                  "variable": [
                    "kNLuS6kgFmuw",
                    "mDkJns6K4ye6"
                  ],
                  "condition": "equalTo",
                  "value": "false"
                }
              ]
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "ifElseResult",
          "key": "ifElseResult",
          "label": "判断结果",
          "valueType": "string",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "ltu4TNVaP9s7",
      "name": "变量更新",
      "intro": "可以更新指定节点的输出值或更新全局变量",
      "avatar": "/imgs/workflow/variable.png",
      "flowNodeType": "variableUpdate",
      "showStatus": true,
      "position": {
        "x": 869.9429728352834,
        "y": 221.21370149856193
      },
      "inputs": [
        {
          "key": "updateList",
          "valueType": "any",
          "label": "",
          "renderTypeList": [
            "hidden"
          ],
          "editField": {
            "key": true,
            "valueType": true
          },
          "value": [
            {
              "variable": [
                "u573fjeevm8v",
                "yBmWibcXT0wp"
              ],
              "value": [
                "",
                "false"
              ],
              "renderType": "input"
            }
          ]
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "amXeqwTAsOlC",
      "target": "io9uqucug9af",
      "sourceHandle": "amXeqwTAsOlC-source-IF",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "amXeqwTAsOlC",
      "target": "ltu4TNVaP9s7",
      "sourceHandle": "amXeqwTAsOlC-source-ELSE",
      "targetHandle": "ltu4TNVaP9s7-target-top"
    },
    {
      "source": "ltu4TNVaP9s7",
      "target": "io9uqucug9af",
      "sourceHandle": "ltu4TNVaP9s7-source-right",
      "targetHandle": "io9uqucug9af-target-left"
    },
    {
      "source": "u573fjeevm8v",
      "target": "amXeqwTAsOlC",
      "sourceHandle": "u573fjeevm8v-source-right",
      "targetHandle": "amXeqwTAsOlC-target-left"
    }
  ]
}

谢谢!复现了修复了