feat(viral_video): #2040 接入Prompt模板系统+删除冗余硬编码prompt #2177
Reference in New Issue
Block a user
Delete Branch "fix/2040-wire-prompt-templates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🚀 预览环境已部署
4e0cc6c19dtofb10393f3dfb10393f3dtob12451f816- 新增 test_viral_video_wiring.py:9 个集成测试覆盖四步接线全流程 - image_analysis / intent_parsing 走 loader + XML 解析 - storyboard 三档 fusion_level 注入 system_prompt - review 走 Reviewer 且 pass/rewrite 两条路径正确 - 端到端验证每步都调用 prompt_loader - 修复 test_script_generation_returns_copy_result:mock 改为返回 XML 字符串 - 修复 test_review_pass_v16:mock Reviewer.review 返回真实 ReviewResult - viral_video.py 增加 import re,_xml_to_product 的 text_on_package 同时从子标签读取(兜底) - prompts.py _STORYBOARD_SYSTEM 改为普通字符串 + {fusion_instruction}/{global_constraints}/{negative_rules} 占位符,支持运行时注入 全量 viral_video 单测 150/150 通过,无回归。 Closes #2040b12451f816to233d0272a9