测试, 生产10.182.17.2:/data1/tlw/Quality_Inspection_System/ nohup uvicorn app:app --host 0.0.0.0 --port 9009 --workers 4 --log-level info > uvicorn.log 2>&1 &10.51.0.1:/data/Quality_Inspection_Systemnohup env/bin/python env/bin/uvicorn app:app --host 0.0.0.0 --port 9009 --workers 4 > log/uvicorn.log 2>&1 &curl -X POST -H "Content-Type: application/json" -d '{"text": "你为什么不说话呢?", "generTrue_reply": false}' http://10.182.17.2:9009/inspectcurl -X POST -H "Content-Type: application/json" -d '{"text": "你为什么不说话呢,你是傻逼吗?", "generate_reply": true}' http://10.182.17.2:9009/inspectcurl http://127.0.0.1:9009/wordscurl -X POST -H "Content-Type: application/json" -d "{\"word\":\"色情小说2\",\"category\":\"涉黄\",\"level\":\"高\"}" http://127.0.0.1:9009/wordscurl -X DELETE http://127.0.0.1:9009/words/色情小说curl http://127.0.0.1:9009/rulescurl -X POST -H "Content-Type: application/json" -d "{\"pattern\":\"办[-._\\s]证\",\"category\":\"广告\",\"level\":\"低\"}" http://127.0.0.1:9009/rulescurl -X DELETE -H "Content-Type: application/json" -d "{\"pattern\":\"办[-._\\s]证\"}" http://127.0.0.1:9009/rulescurl -X POST "http://127.0.0.1:9009/api/v1/skill/scan" \
-H "Content-Type: application/json" \
-d '{
"skill_content": "---\nname: demo-skill\ndescription: demo\n---\n# Demo Skill\nCheck script consistency.",
"scripts": [
{
"path": "scripts/run.py",
"content": "print(\"hello\")"
}
]
}'curl "http://127.0.0.1:9009/api/v1/skill/status/{task_id}"curl "http://127.0.0.1:9009/api/v1/skill/result/{task_id}"curl -X POST "http://127.0.0.1:9009/api/v1/mcp/scan" \
-H "Content-Type: application/json" \
-d '{
"server_url": "http://192.168.12.110:8111/mcp",
"headers": {"Authorization": "Bearer xxx"}
}'curl "http://127.0.0.1:9009/api/v1/mcp/status/{task_id}"curl "http://127.0.0.1:9009/api/v1/mcp/result/{task_id}"curl -X DELETE "http://127.0.0.1:9009/api/v1/mcp/task/{task_id}"