fix: Use LLM to generate unique scene prompts for video extensions#318
Open
crowwdev wants to merge 1 commit intochenyme:mainfrom
Open
fix: Use LLM to generate unique scene prompts for video extensions#318crowwdev wants to merge 1 commit intochenyme:mainfrom
crowwdev wants to merge 1 commit intochenyme:mainfrom
Conversation
- Integrate grok-4.1-fast to generate unique scene descriptions for each video round - Prevent scene repetition in 30-second videos by using different prompts per 6-second segment - Add _generate_scene_prompts_llm() in video.py for base video generation - Add _generate_scene_prompt_for_extend() in video_extend.py for manual extensions - Each scene now has natural progression without repetition Fixes chenyme#316
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Prevent scene repetition in video extensions by using LLM to generate unique prompts for each round.
Changes
_generate_scene_prompts_llm()invideo.pyusing local Grok API instead of aiohttpcurl_cffi.requests.AsyncSession(already available in container)Verification