feat: 修改视频合成接口从数据库读取完整场景数据 #167
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
修改视频合成接口,不再使用前端传来的场景数据,而是通过
project_id从数据库读取所有场景和对话数据,确保视频生成时包含完整信息。Changes
VideoComposeRequestschema,使用project_id替代scenes和project_title/compose接口从数据库查询所有场景和对话数据image_url、audio_url、对话等sequence排序确保场景顺序正确Dialogue表查询对话数据并构造DialogueLine对象Technical Details
修改前:
scenes、project_title参数修改后:
project_id参数Scene和Dialogue表查询完整数据Closes #166
🤖 Generated with codeagent