feat(#1893): scripts AI capability (douyin extract/rewrite/titles) #1930

Merged
auto-approve-bot merged 3 commits from feature/1893-scripts-ai-capability into develop 2026-09-15 13:24:39 +08:00
Owner

3 APIs: extract-from-douyin (yt-dlp+ASR), ai-rewrite (doubao), ai-generate-titles (reuse generate_smart_titles). 32 new tests, 15244 passed.

3 APIs: extract-from-douyin (yt-dlp+ASR), ai-rewrite (doubao), ai-generate-titles (reuse generate_smart_titles). 32 new tests, 15244 passed.
xiaoxia added 2 commits 2026-09-15 13:11:56 +08:00
- POST /api/v1/scripts/extract-from-douyin: 抖音视频文案提取(yt-dlp+ASR)
- POST /api/v1/scripts/ai-rewrite: AI 文案改写(豆包 LLM)
- POST /api/v1/scripts/ai-generate-titles: AI 标题生成(复用 generate_smart_titles)
- 新增 script_asr_service 封装 ASR 转写(未配置时返回 503)
- 32 个单元测试全部通过
feat(#1893): 注册 scripts_ai_router 到主路由 + requirements.txt 添加 yt-dlp
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 42s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 43s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m6s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m36s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 2m23s
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 Approve on CI Green (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 26h10m52s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 26h11m44s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 26h11m45s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 26h11m2s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 26h11m3s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 26h10m19s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 26h11m6s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 26h11m6s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 26h11m8s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 26h11m8s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 26h10m14s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 26h10m14s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 26h11m2s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 26h11m9s
5f632a9b70
- router.py: import scripts_ai_router 并 include_router(prefix='/scripts')
- requirements.txt: 添加 yt-dlp>=2024.1.0(api-base/worker-base 均消费此文件)

🚀 预览环境已部署

项目 详情
PR号 #1930
预览链接 https://pr-1930.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1930 | | 预览链接 | [https://pr-1930.preview.xiaoxiajianji.com](https://pr-1930.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
auto-approve-bot added 1 commit 2026-09-15 13:14:51 +08:00
style: auto-format with black + isort + ruff + prettier [skip ci-format-check]
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 45s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 46s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m7s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m1s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 2m17s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 2m51s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m7s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 5m5s
AI Code Review / AI Code Review (pull_request) Successful in 6m39s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 9m1s
CI/CD Pipeline / CI Gate (pull_request) Successful in 1s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 6m36s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 27s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 3m23s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 25h59m43s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 26h8m45s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 26h8m30s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 26h7m58s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 26h8m4s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 26h8m4s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 26h8m7s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 25h59m3s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 25h59m5s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 25h59m5s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 26h7m47s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 25h59m3s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 26h7m47s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 26h7m58s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 26h7m48s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 26h7m58s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 26h8m14s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 26h8m8s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 26h43m40s
3a6c6677fb
auto-approve-bot merged commit 0c59f83a7f into develop 2026-09-15 13:24:39 +08:00
auto-approve-bot deleted branch feature/1893-scripts-ai-capability 2026-09-15 13:24:39 +08:00

🗑️ 预览环境已清理

PR #1930 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #1930 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.