|
|
@@ -10,7 +10,7 @@ import asyncio
|
|
|
import traceback
|
|
|
from datetime import datetime
|
|
|
from typing import List, Optional, Dict, Any
|
|
|
-from pydantic import BaseModel, Field
|
|
|
+from pydantic import BaseModel, Field, validator
|
|
|
from fastapi import APIRouter, HTTPException, Query
|
|
|
from fastapi.responses import StreamingResponse
|
|
|
from core.base.redis_duplicate_checker import RedisDuplicateChecker
|
|
|
@@ -99,8 +99,8 @@ class LaunchReviewRequest(BaseModel):
|
|
|
callback_task_id: str = Field(..., description="回调任务ID,从文件上传接口获取")
|
|
|
user_id: str = Field(..., description="用户标识")
|
|
|
tendency_review_role: str = Field(
|
|
|
- "default_role",
|
|
|
- description="倾向性审查角色,如选项为 一线施工人员、项目负责人、监理、检测员、项目总工、环保检测人员等"
|
|
|
+ ...,
|
|
|
+ description="倾向性审查角色,暂定为 default_role"
|
|
|
)
|
|
|
review_config: List[str] = Field(
|
|
|
...,
|