Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

工具调用时工具参数不准确问题 #3062

Open
3 of 7 tasks
joveth1 opened this issue Nov 4, 2024 · 1 comment
Open
3 of 7 tasks

工具调用时工具参数不准确问题 #3062

joveth1 opened this issue Nov 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joveth1
Copy link

joveth1 commented Nov 4, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: 4.8.12

问题描述, 日志截图

本地版和云版本都做过测试。

使用工具调用时,做了一个http请求的工具,有两个工具参数(开始日期和结束日期)

为了对比,做了两个工具(账单查询和流水查询),一个是自带的工具参数,一个是自定义的工具参数,但是不管用哪个工具,这两个参数,时而能正确给出结果,时而不能,多数情况下不能正确给出答案。

如下图:

image

提示词里面是:今天的时间为:{{cTime}}

当问今天的账单/流水时,他们多数情况下能给出今天的日期,少数情况下,无法给出正确答案,比如:

image

当问本月账单/流水时,多数情况下,无法给出正确答案,甚至是去年的日期,比如:

7af64339056dd646d630f5cf470464a5

1730703462469_0F531B36-581A-4373-9110-89A923834836

另外,工具调用时,它通常会给参数一个初始值,这个初始值,有时候是:UNDEFINED_SIGN 这样的值,有时候是空,有时候是:‘未知’,日期则是一个旧的值如20230101。其实我更希望当无法从用户问题中提取出参数时,能给一个默认固定的值,这样我们也能根据固定值判断是否需要后续引导用户提供。

当然这多半跟大模型有关,也有可能提示词给的不对,也有可能是我哪里设置的不对,只是看文档,没有找到解决方法,才来这里问一下。或者能提供一下解决思路也许。

非常感谢!

复现步骤

这个是我的配置文件:

{
  "nodes": [
    {
      "nodeId": "userGuide",
      "name": "common:core.module.template.system_config",
      "intro": "common:core.module.template.system_config_info",
      "avatar": "core/workflow/template/systemConfig",
      "flowNodeType": "userGuide",
      "position": {
        "x": 262.2732338817093,
        "y": -476.00241136598146
      },
      "version": "481",
      "inputs": [
        {
          "key": "welcomeText",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "string",
          "label": "core.app.Welcome Text",
          "value": ""
        },
        {
          "key": "variables",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "core.app.Chat Variable",
          "value": []
        },
        {
          "key": "questionGuide",
          "valueType": "boolean",
          "renderTypeList": [
            "hidden"
          ],
          "label": "core.app.Question Guide",
          "value": false
        },
        {
          "key": "tts",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": {
            "type": "web"
          }
        },
        {
          "key": "whisper",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": {
            "open": false,
            "autoSend": false,
            "autoTTSResponse": false
          }
        },
        {
          "key": "scheduleTrigger",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "label": "",
          "value": null
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "448745",
      "name": "common:core.module.template.work_start",
      "intro": "",
      "avatar": "core/workflow/template/workflowStart",
      "flowNodeType": "workflowStart",
      "position": {
        "x": 632.368838596004,
        "y": -347.7446492944009
      },
      "version": "481",
      "inputs": [
        {
          "key": "userChatInput",
          "renderTypeList": [
            "reference",
            "textarea"
          ],
          "valueType": "string",
          "label": "common:core.module.input.label.user question",
          "required": true,
          "toolDescription": "用户问题",
          "debugLabel": ""
        }
      ],
      "outputs": [
        {
          "id": "userChatInput",
          "key": "userChatInput",
          "label": "common:core.module.input.label.user question",
          "type": "static",
          "valueType": "string",
          "description": ""
        }
      ]
    },
    {
      "nodeId": "oI6qjdqAMUPs",
      "name": "工具调用",
      "intro": "通过AI模型自动选择一个或多个功能块进行调用,也可以对插件进行调用。",
      "avatar": "core/workflow/template/toolCall",
      "flowNodeType": "tools",
      "showStatus": true,
      "position": {
        "x": 1753.6835332406456,
        "y": -642.4445771331593
      },
      "version": "481",
      "inputs": [
        {
          "key": "model",
          "renderTypeList": [
            "settingLLMModel",
            "reference"
          ],
          "label": "AI 模型",
          "valueType": "string",
          "llmModelType": "all",
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": "",
          "value": "qwen-turbo"
        },
        {
          "key": "temperature",
          "renderTypeList": [
            "hidden"
          ],
          "label": "",
          "value": 0,
          "valueType": "number",
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "maxToken",
          "renderTypeList": [
            "hidden"
          ],
          "label": "",
          "value": 2000,
          "valueType": "number",
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatVision",
          "renderTypeList": [
            "hidden"
          ],
          "label": "",
          "valueType": "boolean",
          "value": true,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "systemPrompt",
          "renderTypeList": [
            "textarea",
            "reference"
          ],
          "max": 3000,
          "valueType": "string",
          "label": "提示词",
          "description": "core.app.tip.systemPromptTip",
          "placeholder": "core.app.tip.chatNodeSystemPromptTip",
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": "",
          "value": "今天的时间为:{{cTime}}"
        },
        {
          "key": "history",
          "renderTypeList": [
            "numberInput",
            "reference"
          ],
          "valueType": "chatHistory",
          "label": "聊天记录",
          "description": "workflow:max_dialog_rounds",
          "required": true,
          "min": 0,
          "max": 50,
          "value": 6,
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "userChatInput",
          "renderTypeList": [
            "reference",
            "textarea"
          ],
          "valueType": "string",
          "label": "用户问题",
          "toolDescription": "用户输入的问题(问题需要完善)",
          "required": true,
          "value": [
            "448745",
            "userChatInput"
          ],
          "valueDesc": "",
          "description": "",
          "debugLabel": ""
        }
      ],
      "outputs": [
        {
          "id": "answerText",
          "key": "answerText",
          "label": "common:core.module.output.label.Ai response content",
          "description": "将在 stream 回复完毕后触发",
          "valueType": "string",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "rjpFhLE3RD4G",
      "name": "账单查询",
      "intro": "当问账单相关问题时,使用这个工具",
      "avatar": "core/workflow/template/httpRequest",
      "flowNodeType": "httpRequest468",
      "showStatus": true,
      "position": {
        "x": 928.0802488372819,
        "y": 277.676995772874
      },
      "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
          },
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpMethod",
          "renderTypeList": [
            "custom"
          ],
          "valueType": "string",
          "label": "",
          "value": "GET",
          "required": true,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpTimeout",
          "renderTypeList": [
            "custom"
          ],
          "valueType": "number",
          "label": "",
          "value": 30,
          "min": 5,
          "max": 600,
          "required": true,
          "valueDesc": "",
          "description": "",
          "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": "https://www.baidu.com",
          "valueDesc": "",
          "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,
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpParams",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": [
            {
              "key": "startdate",
              "type": "string",
              "value": "{{startdate}}"
            },
            {
              "key": "enddate",
              "type": "string",
              "value": "{{enddate}}"
            }
          ],
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpJsonBody",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": "",
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpFormBody",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": [],
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpContentType",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "string",
          "value": "json",
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "startdate",
          "label": "startdate",
          "toolDescription": "账单开始日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "object",
              "arrayString",
              "arrayNumber",
              "arrayBoolean",
              "arrayObject",
              "arrayAny",
              "any",
              "chatHistory",
              "datasetQuote",
              "dynamic",
              "selectApp",
              "selectDataset"
            ],
            "showDescription": false,
            "showDefaultValue": true
          }
        },
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "enddate",
          "label": "enddate",
          "toolDescription": "账单结束日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "object",
              "arrayString",
              "arrayNumber",
              "arrayBoolean",
              "arrayObject",
              "arrayAny",
              "any",
              "chatHistory",
              "datasetQuote",
              "dynamic",
              "selectApp",
              "selectDataset"
            ],
            "showDescription": false,
            "showDefaultValue": true
          }
        }
      ],
      "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",
              "arrayAny",
              "any",
              "chatHistory",
              "datasetQuote",
              "dynamic",
              "selectApp",
              "selectDataset"
            ],
            "showDescription": false,
            "showDefaultValue": false
          },
          "description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
          "valueDesc": ""
        }
      ]
    },
    {
      "nodeId": "p6BWqjfSS1HZ",
      "name": "工具调用终止",
      "intro": "该模块需配置工具调用使用。当该模块被执行时,本次工具调用将会强制结束,并且不再调用AI针对工具调用结果回答问题。",
      "avatar": "core/workflow/template/stopTool",
      "flowNodeType": "stopTool",
      "position": {
        "x": 1684.3315537866504,
        "y": 891.434961871799
      },
      "version": "481",
      "inputs": [],
      "outputs": []
    },
    {
      "nodeId": "f7B83zCbx8BU",
      "name": "流水查询",
      "intro": "当问关于流水的问题时,使用这个工具",
      "avatar": "core/workflow/template/toolParams",
      "flowNodeType": "toolParams",
      "position": {
        "x": 2493.0434476737064,
        "y": 254.5212502672719
      },
      "version": "4811",
      "inputs": [
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "startdate",
          "label": "startdate",
          "toolDescription": "流水开始日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "arrayString",
              "arrayNumber",
              "arrayBoolean"
            ],
            "showDescription": true
          },
          "enum": ""
        },
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "enddate",
          "label": "enddate",
          "toolDescription": "流水结束日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "arrayString",
              "arrayNumber",
              "arrayBoolean"
            ],
            "showDescription": true
          },
          "enum": ""
        }
      ],
      "outputs": [
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "startdate",
          "label": "startdate",
          "toolDescription": "流水开始日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "arrayString",
              "arrayNumber",
              "arrayBoolean"
            ],
            "showDescription": true
          },
          "enum": "",
          "id": "startdate",
          "type": "static"
        },
        {
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "key": "enddate",
          "label": "enddate",
          "toolDescription": "流水结束日期,按YYYYMMDD格式返回",
          "required": true,
          "canEdit": true,
          "customInputConfig": {
            "selectValueTypeList": [
              "string",
              "number",
              "boolean",
              "arrayString",
              "arrayNumber",
              "arrayBoolean"
            ],
            "showDescription": true
          },
          "enum": "",
          "id": "enddate",
          "type": "static"
        }
      ]
    },
    {
      "nodeId": "vjpsqdGP4sY1",
      "name": "HTTP 请求#2",
      "intro": "可以发出一个 HTTP 请求,实现更为复杂的操作(联网搜索、数据库查询等)",
      "avatar": "core/workflow/template/httpRequest",
      "flowNodeType": "httpRequest468",
      "showStatus": true,
      "position": {
        "x": 2484.0434476737064,
        "y": 679.7439200398046
      },
      "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
          },
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpMethod",
          "renderTypeList": [
            "custom"
          ],
          "valueType": "string",
          "label": "",
          "value": "GET",
          "required": true,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpTimeout",
          "renderTypeList": [
            "custom"
          ],
          "valueType": "number",
          "label": "",
          "value": 30,
          "min": 5,
          "max": 600,
          "required": true,
          "valueDesc": "",
          "description": "",
          "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": "https://www.baidu.com",
          "valueDesc": "",
          "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,
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpParams",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": [
            {
              "key": "startdate",
              "type": "string",
              "value": "{{startdate}}"
            },
            {
              "key": "enddate",
              "type": "string",
              "value": "{{enddate}}"
            }
          ],
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpJsonBody",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": "",
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpFormBody",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "any",
          "value": [],
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "system_httpContentType",
          "renderTypeList": [
            "hidden"
          ],
          "valueType": "string",
          "value": "json",
          "label": "",
          "required": false,
          "valueDesc": "",
          "description": "",
          "debugLabel": "",
          "toolDescription": ""
        }
      ],
      "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",
              "arrayAny",
              "any",
              "chatHistory",
              "datasetQuote",
              "dynamic",
              "selectApp",
              "selectDataset"
            ],
            "showDescription": false,
            "showDefaultValue": false
          },
          "description": "可以通过 JSONPath 语法来提取响应值中的指定字段",
          "valueDesc": ""
        }
      ]
    },
    {
      "nodeId": "yL4fKvBN9tPo",
      "name": "指定回复",
      "intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 1681.1835332406456,
        "y": 451.5212502672719
      },
      "version": "481",
      "inputs": [
        {
          "key": "text",
          "renderTypeList": [
            "textarea",
            "reference"
          ],
          "valueType": "any",
          "required": true,
          "label": "回复的内容",
          "description": "common:core.module.input.description.Response content",
          "placeholder": "common:core.module.input.description.Response content",
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": "",
          "value": "成功"
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "cX3bUK1g1xZA",
      "name": "工具调用终止#2",
      "intro": "该模块需配置工具调用使用。当该模块被执行时,本次工具调用将会强制结束,并且不再调用AI针对工具调用结果回答问题。",
      "avatar": "core/workflow/template/stopTool",
      "flowNodeType": "stopTool",
      "position": {
        "x": 3198.52231649508,
        "y": 1157.9927520394845
      },
      "version": "481",
      "inputs": [],
      "outputs": []
    },
    {
      "nodeId": "qtWI7WPrYvXP",
      "name": "指定回复#2",
      "intro": "该模块可以直接回复一段指定的内容。常用于引导、提示。非字符串内容传入时,会转成字符串进行输出。",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 3174.5263785116395,
        "y": 764.8285373877284
      },
      "version": "481",
      "inputs": [
        {
          "key": "text",
          "renderTypeList": [
            "textarea",
            "reference"
          ],
          "valueType": "any",
          "required": true,
          "label": "回复的内容",
          "description": "common:core.module.input.description.Response content",
          "placeholder": "common:core.module.input.description.Response content",
          "valueDesc": "",
          "debugLabel": "",
          "toolDescription": "",
          "selectedTypeIndex": 0,
          "value": "日期:{{$f7B83zCbx8BU.startdate$}},{{$f7B83zCbx8BU.enddate$}}"
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "448745",
      "target": "oI6qjdqAMUPs",
      "sourceHandle": "448745-source-right",
      "targetHandle": "oI6qjdqAMUPs-target-left"
    },
    {
      "source": "oI6qjdqAMUPs",
      "target": "rjpFhLE3RD4G",
      "sourceHandle": "selectedTools",
      "targetHandle": "selectedTools"
    },
    {
      "source": "rjpFhLE3RD4G",
      "target": "p6BWqjfSS1HZ",
      "sourceHandle": "rjpFhLE3RD4G-source-right",
      "targetHandle": "p6BWqjfSS1HZ-target-left"
    },
    {
      "source": "oI6qjdqAMUPs",
      "target": "f7B83zCbx8BU",
      "sourceHandle": "selectedTools",
      "targetHandle": "selectedTools"
    },
    {
      "source": "rjpFhLE3RD4G",
      "target": "yL4fKvBN9tPo",
      "sourceHandle": "rjpFhLE3RD4G-source-right",
      "targetHandle": "yL4fKvBN9tPo-target-left"
    },
    {
      "source": "f7B83zCbx8BU",
      "target": "vjpsqdGP4sY1",
      "sourceHandle": "f7B83zCbx8BU-source-bottom",
      "targetHandle": "vjpsqdGP4sY1-target-top"
    },
    {
      "source": "vjpsqdGP4sY1",
      "target": "cX3bUK1g1xZA",
      "sourceHandle": "vjpsqdGP4sY1-source-right",
      "targetHandle": "cX3bUK1g1xZA-target-left"
    },
    {
      "source": "vjpsqdGP4sY1",
      "target": "qtWI7WPrYvXP",
      "sourceHandle": "vjpsqdGP4sY1-source-right",
      "targetHandle": "qtWI7WPrYvXP-target-left"
    }
  ],
  "chatConfig": {
    "welcomeText": "[今日账单]\n[今日流水]",
    "variables": [],
    "scheduledTriggerConfig": {
      "cronString": "",
      "timezone": "Asia/Shanghai",
      "defaultPrompt": ""
    },
    "_id": "67286dabe19d3c396806c1f6"
  }
}

预期结果

给出正确的参数

相关截图

@joveth1 joveth1 added the bug Something isn't working label Nov 4, 2024
@c121914yu
Copy link
Collaborator

尝试换个模型试试,qwen-turbo 有点小。而且需要看下,是不是用了 tool 模式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants