972 B
972 B
1. Implementation
- 1.1 Extend popular-video source/task types to support prompt-based source records and prompt-generation tasks.
- 1.2 Add a video prompt-generation prompt builder that returns
VideoAnalysisDataJSON compatible with the existing workflow. - 1.3 Add
提示词生成input mode before上传视频, with prompt text, optional PDF upload/removal, model selection, and queue submission. - 1.4 Route prompt-generation tasks through the existing Gemini chat + PDF inline-data path and finalize structured results.
- 1.5 Sync completed prompt-generation tasks into
AnalysisRecordhistory without storing PDF base64. - 1.6 Add focused tests for prompt builder/parsing, task sync, and PDF task params.
2. Verification
- 2.1 Run targeted unit tests for video analyzer utilities/task sync.
- 2.2 Manually verify prompt-only generation, prompt + PDF generation, invalid PDF, oversized PDF, and history reopen behavior.