fix(#1894): 移除 CreateGenerationTaskRequest 中重复的 script_id 字段定义
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m51s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 3m7s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 3m13s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m30s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m50s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 4m8s
CI/CD Pipeline / Validate - Style (pull_request) Has been cancelled
CI/CD Pipeline / Validate - Security (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Merge on CI Green + Approved (pull_request) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 24h46m56s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 24h47m2s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 24h47m3s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 24h46m23s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 24h46m21s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 24h46m23s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 24h46m23s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 24h46m25s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 24h46m25s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 24h46m25s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 24h46m16s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 24h46m26s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 24h46m16s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 24h46m24s

This commit is contained in:
xiaoxia
2026-09-15 14:30:50 +08:00
parent bc85c79f39
commit 6a4913a3b9
+10
View File
@@ -43,6 +43,11 @@ class CreateGenerationTaskRequest(BaseModel):
default_factory=list,
description="POST /generation/variant-plans 返回的各变体 plan_id(长度须=count);为空则走服务端选片",
)
# ── 文案库关联(#1894 标题库整合到文案库)──
script_id: str = Field(
default="",
description="关联的文案(script)ID;非空时从 script 读取 title_text/title_config 作为标题配置",
)
# ── 标题配置(结构化)──
title_config: dict | None = Field(
default=None,
@@ -237,6 +242,11 @@ class CreatePreviewGenerationTaskRequest(BaseModel):
default_factory=dict,
description="标题配置(可选),渲染时烧录到预览视频中。支持字段: text/font/font_size/font_color/position/bold/stroke/shadow。N个变体时样式全局共用",
)
# ── #1894: 关联文案,从 script 读取标题配置 ──
script_id: str = Field(
default="",
description="关联的文案(script)ID;非空时从 script 读取 title_text/title_config 作为标题配置",
)
# ── 多变体独立配置(preview_count > 1)──
# 长度 1 = 所有变体共用;长度 = preview_count = 每个变体独立;空数组 = 回退单值字段
titles: list[str] = Field(