2025-10-11 16:18:03 +08:00

1.2 KiB

TYCM AI Review Service - 最小实现版本

🚀 快速启动

1. 安装依赖

cd D:\project-tycm\tycm_service_ai\ai_review_service
pip install -r requirements.txt

2. 启动服务

python run.py

服务将在 http://localhost:8080 启动

3. 访问文档

📡 API接口

POST /api/v1/audit

AI审核订单接口

请求示例:

{
  "order_id": "12345",
  "order_status": "WAITEXAMINE",
  "oem_id": 2,
  "car_type": "0",
  "card_name": "张三",
  "card_number": "123456789012345678",
  "car_frame": "WDDGF4HB9CA123456",
  "buyer_name": "张三",
  "id_card_score": 85,
  "bill_score": 92
}

响应示例:

{
  "result": "PASS",
  "confidence": 0.95,
  "reason": "AI审核通过",
  "decision_path": [
    {"node": "PRE_CHECK", "condition": "all_preconditions_met", "result": true},
    {"node": "BUSINESS_RULES", "condition": "all_business_rules_passed", "result": true}
  ],
  "processing_time_ms": 150
}

🔧 配置说明

  • 默认端口: 8080
  • 支持跨域: 是
  • 日志级别: INFO

Java集成

参考 Java 服务中的 DecisionTreeService 调用此服务。