': {'message': 'Your request was rejected by the safety system. If you believe t...

2026年04月28日 19:08 processing

错误信息

unexpected response: {'error': {'message': 'Your request was rejected by the safety system. If you believe this is an error, contact us at Azure support ticket and include the request ID 396fecdb-4e70-4d7d-9d52-43b79324107d. safety_violations=[sexual]. (request id: 202604281845494914618819yLbllps)', 'type': 'rix_api_error', 'param': '', 'code': 'moderation_blocked'}}

AI 解决方案

报错分析报告

1.错误翻译


原文:Your request was rejected by the safety system. If you believe this is an error, contact us at Azure support ticket and include the request ID 396fecdb-4e70-4d7d-9d52-43b79324107d. safety_violations=[sexual]. (request id: 202604281845494914618819yLbllps)
译文:你的请求被安全系统拒绝。若认为是误判,请联系Azure支持工单并附上请求ID 396fecdb-4e70-4d7d-9d52-43b79324107d。安全违规项=[性相关]。(请求ID:202604281845494914618819yLbllps)

2. 原因分析


  • 根本原因:请求内容触发安全系统的性相关违规检测(safety_violations=[sexual]),被 moderation 模块拦截。

  • 发生位置:请求的 payload/内容中包含违反平台安全策略的性相关元素,导致 API 返回 moderation_blocked 错误。
  • 3.解决方案


    调整请求内容,移除所有性相关违规元素,确保符合平台安全规范后重新发送:
    // 修复步骤:
    1. 审查请求中的文本、参数或附件,删除性暗示、露骨描述等违规内容;
    2. 确认内容仅包含合法、合规的信息;
    3. 重新发起请求(保留原请求ID用于后续排查,若需)。
    

    4. 预防措施


  • 预审核机制:发送请求前用内容安全工具(如 Azure Content Safety)自检,过滤违规元素;

  • 规范对齐:熟悉平台《安全使用指南》,避免触碰性、暴力等禁止类内容红线。
  • ---
    请修正请求内容后重新尝试。