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
18.65k stars 4.92k forks source link

自定义工具变量对于数据类型为array<string>时,对话框和详情不能正常显示 #3197

Open chung1912 opened 1 week ago

chung1912 commented 1 week ago

例行检查

你的版本

问题描述, 日志截图

如图所示,我将工具参数的变量a类型设置为array image 当对话触发工具调用时,如果变量a有两个元素(比如a1和a2),错误的分成了两条记录{"a": "a1"}、{"a": "a2"},如下图所示: image

以上问题,只有gpt-4o-mini的时候会出现,但是调用gpt-3.5-turbo则是正常的(即只有一行记录为{"a": ["a1","a2"]})

预期结果 工具调用采用gpt-4o-mini能正确展示应该只有一条记录,应该是 {"a": ["a1","a2"]} 相关截图