FastGPT icon indicating copy to clipboard operation
FastGPT copied to clipboard

不能识别Azure自定义内容筛选的响应

Open Zhenyi-Wang opened this issue 9 months ago • 1 comments

例行检查

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

你的版本

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

问题描述, 日志截图 Azure的OpenAI API,当回答过程中因为内容审核被官方截断,FastGPT API返回的错误信息不清晰:'core.chat.Chat API is error or undefined'

日志:

[ERROR] 2024-05-22 08:28:00 sse error: core.chat.Chat API is error or undefined 
{
  message: 'core.chat.Chat API is error or undefined',
  stack: undefined
}

复现步骤 image image image

先在Azure后台创建阻止列表,比如自定义一个敏感词“boom”,接着配置内容筛选器引用这个列表,最后在模型配置中使用这个筛选器。

如果直接对AI说包含“boom”的提示,FastGPT能够正确返回错误 content_filter image

但是如果是AI的回复中包含这个词,从而被微软截断,FastGPT的报错就很模糊 image

预期结果 都返回content_filter错误

相关截图

Zhenyi-Wang avatar May 22 '24 08:05 Zhenyi-Wang