FastGPT icon indicating copy to clipboard operation
FastGPT copied to clipboard

使用文本提取插件时,有些模型不支持arrayString这种JSON Schema

Open shilin66 opened this issue 11 months ago • 0 comments

例行检查

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

你的版本

  • [x] 公有云版本
  • [ ] 私有部署版本, 具体版本号:

问题描述, 日志截图,配置文件等

目前测试了openai,qwen。qwen使用没有问题,openai 出现如下图所示报错

Image

{
  "message": "400 Invalid schema for function 'request_function': 'arrayString' is not valid under any of the given schemas.  (request id: 20250227175442629703633FbOwSv5c) (request id: 2025022717544254070662477464582) (request id: 20250227175442518589431mUdLX6qk) (request id: 2025022709544251055230632216198)",
  "name": "Error",
  "code": "invalid_function_parameters",
  "status": 400
}

复现步骤 如图,使用文本提取插件,提取的字段类型定义为array

预期结果

相关截图

shilin66 avatar Feb 27 '25 10:02 shilin66