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

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

Open
5 of 7 tasks
chung1912 opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chung1912
Copy link

chung1912 commented Nov 20, 2024

例行检查

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

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.8.13-fix

问题描述, 日志截图

如图所示,我将工具参数的变量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"]}
相关截图

@chung1912 chung1912 added the bug Something isn't working label Nov 20, 2024
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

1 participant