diff --git a/video-gen-api/app/schemas/hot_opening_replicate.py b/video-gen-api/app/schemas/hot_opening_replicate.py index f06d5e5d..b3be0fd7 100644 --- a/video-gen-api/app/schemas/hot_opening_replicate.py +++ b/video-gen-api/app/schemas/hot_opening_replicate.py @@ -193,8 +193,8 @@ class HotOpeningTaskCreate(BaseModel): material_video_url: str = Field(..., min_length=1, description="素材视频链接,参考素材,1份。由项目已有上传接口返回,本接口不负责上传,不做后端素材校验") material_image_url: str = Field(..., min_length=1, description="素材图片链接,新产品图片,1份。由项目已有上传接口返回,本接口不负责上传,不做后端素材校验") - source_project_name: str = Field(..., min_length=1, max_length=120, description="视频素材内容项目名称") - target_project_name: str = Field(..., min_length=1, max_length=120, description="生成项目名称") + source_project_name: str = Field(..., min_length=1, max_length=20, description="视频素材内容项目名称") + target_project_name: str = Field(..., min_length=1, max_length=20, description="生成项目名称") core_content_point: str = Field(..., min_length=1, max_length=50, description="生成的项目核心内容点,最多50字") idempotency_key: str | None = Field(None, max_length=64, description="创建总任务幂等键。只用于 module_generation_projects,不用于 ChatGenerationTask") @@ -224,8 +224,8 @@ class HotOpeningMaterialUpdateRequest(BaseModel): material_video_url: str | None = Field(None, min_length=1, description="素材视频链接,未传则沿用旧值") material_image_url: str | None = Field(None, min_length=1, description="素材图片链接,未传则沿用旧值") - source_project_name: str | None = Field(None, min_length=1, max_length=120, description="视频素材内容项目名称,未传则沿用旧值") - target_project_name: str | None = Field(None, min_length=1, max_length=120, description="生成项目名称,未传则沿用旧值") + source_project_name: str | None = Field(None, min_length=1, max_length=20, description="视频素材内容项目名称,未传则沿用旧值") + target_project_name: str | None = Field(None, min_length=1, max_length=20, description="生成项目名称,未传则沿用旧值") core_content_point: str | None = Field(None, min_length=1, max_length=50, description="生成项目核心内容点,最多50字,未传则沿用旧值") @field_validator("material_video_url", "material_image_url", "source_project_name", "target_project_name", "core_content_point", mode="before") @@ -250,8 +250,8 @@ class HotOpeningStepUpdate(BaseModel): material_video_url: str | None = Field(None, description="修改第1步素材视频链接") material_image_url: str | None = Field(None, description="修改第1步素材图片链接") - source_project_name: str | None = Field(None, max_length=120, description="修改第1步视频素材内容项目名称") - target_project_name: str | None = Field(None, max_length=120, description="修改第1步生成项目名称") + source_project_name: str | None = Field(None, max_length=20, description="修改第1步视频素材内容项目名称") + target_project_name: str | None = Field(None, max_length=20, description="修改第1步生成项目名称") core_content_point: str | None = Field(None, max_length=50, description="修改第1步生成项目核心内容点,最多50字") prompt: str | None = Field(None, description="修改第2步图片提词或第4步视频最终提词") prompt_schema: dict[str, Any] | None = Field(None, description="修改第4步视频提词 JSON schema。只对视频提词步骤有意义")