请求提供AI生成文本检测返回对象示例 排查Webhook空数组问题
AI生成文本检测Webhook返回对象示例
当启用properties.aiGeneratedText.detect标识调用/v3/scans/submit/file/{scanId}端点完成AI生成文本扫描后,沙箱Webhook完成体的notifications.alerts区域会返回如下结构的对象:
{ "notifications": { "alerts": [ { "type": "ai_generated_text", "status": "detected", "score": 0.92, "details": { "segments": [ { "startIndex": 0, "endIndex": 150, "confidence": 0.95, "text": "生成的AI文本内容片段示例..." }, { "startIndex": 151, "endIndex": 300, "confidence": 0.88, "text": "另一处AI生成的文本片段..." } ], "overallConfidence": 0.92 }, "scanId": "your-scan-id-here", "timestamp": "2024-05-20T14:30:00Z" } ] } }
关键字段说明
type: 固定为ai_generated_text,标识该警报为AI生成文本检测结果status: 取值为detected(检测到AI生成文本)或not_detected(未检测到)score: 整体AI生成置信度分数(0-1之间,值越高表示文本越可能由AI生成)details.segments: 标注文本中被检测为AI生成的具体片段,包含片段起止索引、置信度和对应文本内容scanId: 对应本次扫描的唯一IDtimestamp: 扫描完成的时间戳
内容的提问来源于stack exchange,提问作者learntheropes
相关产品推荐
相关产品推荐

