BettaFish icon indicating copy to clipboard operation
BettaFish copied to clipboard

Query / Reflection Agent 使用 DeepSeek 时频繁返回 Content Exists Risk (400),建议还是使用国外的模型以规避内容审查

Open hailinll opened this issue 5 months ago • 1 comments

在本地成功完成数据库连接和表结构初始化之后,运行 BettaFish 的多 Agent 流程(包含 Query / Forum / Report / Reflection 节点),当 LLM 配置为 DeepSeek API (https://api.deepseek.com/chat/completions) 时,Query / Reflection 这类会“重新组织已有内容”的节点多次出现如下报错:

HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 400 Bad Request"
{'error': {'message': 'Content Exists Risk', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}

从日志看,程序会按递增间隔自动重试(60s → 120s → 240s → …),最终还是失败,导致这一步卡很久。

从触发内容看,只要 Query Agent 抓到的内容里同时出现新闻类、涉政机构名称、PDF 标题等敏感度较高的信息,DeepSeek 就会返回 Content Exists Risk,而不是正常的 completion。

hailinll avatar Nov 04 '25 18:11 hailinll

触发高风险了,换审查比较弱的llm

------------------ 原始邮件 ------------------ 发件人: hailinll @.> 发送时间: 2025年11月5日 02:43 收件人: 666ghj/BettaFish @.> 抄送: Subscribed @.***> 主题: Re: [666ghj/BettaFish] Query / Reflection Agent 使用 DeepSeek 时频繁返回 Content Exists Risk (400),建议还是使用国外的模型以规避内容审查 (Issue #108)

hailinll created an issue (666ghj/BettaFish#108)

在本地成功完成数据库连接和表结构初始化之后,运行 BettaFish 的多 Agent 流程(包含 Query / Forum / Report / Reflection 节点),当 LLM 配置为 DeepSeek API (https://api.deepseek.com/chat/completions) 时,Query / Reflection 这类会“重新组织已有内容”的节点多次出现如下报错: HTTP Request: POST https://api.deepseek.com/chat/completions "HTTP/1.1 400 Bad Request" {'error': {'message': 'Content Exists Risk', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}
从日志看,程序会按递增间隔自动重试(60s → 120s → 240s → …),最终还是失败,导致这一步卡很久。

从触发内容看,只要 Query Agent 抓到的内容里同时出现新闻类、涉政机构名称、PDF 标题等敏感度较高的信息,DeepSeek 就会返回 Content Exists Risk,而不是正常的 completion。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

666ghj avatar Nov 05 '25 00:11 666ghj