fix(viral-video) P0/P1: Seedance模型ID映射+很近全局替换+失败状态强落库 #2157
Reference in New Issue
Block a user
Delete Branch "fix/2156-seedance-model-id-henjin-failed-marking"
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?
P0 Seedance HTTP 404 InvalidEndpointOrModel.NotFound
根因:动态定价代码把内部 pricing key
seedance-2.5直接传给方舟 API,而方舟实际模型ID是doubao-seedance-2-5-260628。修复:
packages/shared/ai_client.py新增VIRAL_VIDEO_MODEL_ID_MAP和_resolve_video_model_id()settings.doubao_video_modelP1 render失败后job状态没落库(前端无限转圈)
加固
_mark_failed_and_notify():原 session 因前面异常处于 rollback 状态时,自动开独立 SessionLocal 重新标记,确保失败状态+error_msg+completed_at一定落库,且积分退款走独立session不受影响。P1 很近错别字三保险没生效
根因:之前只替换了
voiceover_script和shots[].scene_and_dialogue,但overview.theme/scene_and_lighting/final_copy/shots[].action_details/shots[].audio_bgm等字段漏替换。修复:
_replace_henjin_everywhere()递归遍历 copy_result 所有层级所有字符串字段测试
P0/P1 修复,16407单测全绿
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2157 已关闭或合并,对应的预览环境已被清理。