Commit Graph
12 Commits
Author SHA1 Message Date
jason.mei 7da714c686 refactor(vidu,wan_ai): add fallback VideoFromFile wrapper for import compatibility
- Add third-level fallback import handler for VideoFromFile class across all video modules
- Implement simple VideoFromFile wrapper class with default dimensions (1280x720) when imports fail
- Support video_io objects with getvalue() method for BytesIO compatibility
- Add clarifying comments for each import path (newer, older, and fallback)
- Apply consistent fallback pattern to vidu_extend, vidu_i2v, vidu_ref2v, vidu_startend2v, vidu_t2v, wan_ai_i2v, and wan_ai_t2v modules
- Improve robustness for different ComfyUI versions and installation configurations
2025-12-29 18:36:16 +08:00
jason.mei ee2debe867 refactor(vidu,wan_ai): remove duplicate VideoFromFile fallback implementation
- Remove redundant VideoFromFile class implementations from vidu_extend.py, vidu_i2v.py, vidu_ref2v.py, vidu_startend2v.py, and vidu_t2v.py
- Remove duplicate VideoFromFile fallback from wan_ai_i2v.py and wan_ai_t2v.py
- Simplify import logic by relying on comfy library's VideoFromFile implementation
- Reduce code duplication across multiple video generation modules
- Improve maintainability by centralizing video handling logic
2025-12-29 18:32:21 +08:00
jason.mei c2d2ec96b2 feat(vidu,wan_ai): add video dimension extraction with av library
- Add `get_dimensions()` method to VideoFromFile fallback class across all vidu and wan_ai modules
- Implement PyAV (av) library integration to extract video width and height from container streams
- Add dimension caching with `_width` and `_height` attributes to avoid redundant parsing
- Implement fallback dimensions (1280x720) when video parsing fails
- Add proper stream seeking to reset file position after dimension extraction
- Update requirements.txt to include av library dependency
- Ensure consistent video dimension handling across vidu_t2v, vidu_i2v, vidu_ref2v, vidu_startend2v, vidu_extend, wan_ai_t2v, and wan_ai_i2v modules
2025-12-29 18:11:04 +08:00
jason.mei 20093d1c40 feat(wan_ai_i2v): simplify video handling and improve error management
- Remove unused imports (os, tempfile) to reduce dependencies
- Simplify VideoFromFile import fallback logic by removing unnecessary comments
- Remove get_dimensions() method from VideoFromFile wrapper class
- Consolidate video download logic and remove redundant error handling
- Increase download timeout from 60s to 120s for better reliability
- Remove verbose print statements for cleaner logging
- Simplify video data processing by directly using response.content
- Streamline return statement to directly instantiate VideoFromFile
- Remove fallback video_data return path for consistent API behavior
- Improve code readability and maintainability through simplification
2025-12-29 17:54:47 +08:00
jason.mei 7a3091df10 feat(wan_ai_t2v): improve video generation and error handling
- Remove unused imports (os, tempfile)
- Add fallback VideoFromFile class for better compatibility
- Simplify video download and processing logic
- Add timeout parameter (120s) to video download request
- Improve error handling with specific ImportError catching
- Reduce code complexity by removing redundant checks and logging
- Streamline BytesIO object creation and return statement
- Enhance robustness when VideoFromFile is not available in ComfyUI
2025-12-29 17:53:31 +08:00
jason.mei bd7d00b1ce feat(modelverse): add Gemini Pro Image and Vidu video generation support
- Add Gemini 3 Pro Image Preview (Nano Banana Pro) ComfyUI node with high-resolution output (1K, 2K, 4K)
- Add GeminiProImageRequest builder supporting aspect ratio control, Google Search grounding, and up to 14 reference images
- Add Vidu video generation nodes: t2v, i2v, ref2v, and startend2v for comprehensive video synthesis
- Add Vidu extend node for video continuation and frame extension
- Update .gitignore to exclude .ace-tool/ and docs/ directories
- Enable professional asset production with advanced image and video generation capabilities
2025-12-29 16:03:39 +08:00
jasonandjason.mei 2be7d1e881 add gpt-image,qwen,nano banana (#5)
* add gitignore

* add video api

* fix: export to video

* fix

* fix

* fix

* fix

* fix

* add i2v

* fix

* fix

* add openai

* fix: add base url

* change default models

* fix: add base url

* add v1

* fix models

* fix models

* fix models

* fix models

* fix models

* fix bug

* fix

* try to fix

* use IO.STRING test

* image fix

* add chat content

* add files

* fix optional

* fix file read

* fix file read

* change name

* add get models

* add unused apikey

* change model sort

* fix IMAGE_LIST

* fix: change to image

* add model cache

* remove json_object

* change max_tokens to 65536

* change max_tokens to 6000

* add pic model

* fix gpt-image-1

* fix gpt-image-1

* fix gpt

* fix gpt

* fix gpt

* fix gpt

* add gpt edit

* fix gpt edit

* update project.toml

---------

Co-authored-by: jason.mei <jason.mei@ucloud.cn>
2025-09-23 11:26:19 +08:00
jasonandjason.mei 681f6ebc5f support text generation
* add gitignore

* add video api

* fix: export to video

* fix

* fix

* fix

* fix

* fix

* add i2v

* fix

* fix

* add openai

* fix: add base url

* change default models

* fix: add base url

* add v1

* fix models

* fix models

* fix models

* fix models

* fix models

* fix bug

* fix

* try to fix

* use IO.STRING test

* image fix

* add chat content

* add files

* fix optional

* fix file read

* fix file read

* change name

* add get models

* add unused apikey

* change model sort

* fix IMAGE_LIST

* fix: change to image

* add model cache

* remove json_object

* change max_tokens to 65536

* change max_tokens to 6000

---------

Co-authored-by: jason.mei <jason.mei@ucloud.cn>
2025-09-15 15:31:26 +08:00
jasonandjason.mei 7d350330e7 add video async api
* add gitignore

* add video api

* fix: export to video

* fix

* fix

* fix

* fix

* fix

* add i2v

* fix

* fix

---------

Co-authored-by: jason.mei <jason.mei@ucloud.cn>
2025-09-09 13:52:07 +08:00
Andrewmatilde 0f5c8ac35b make execute async function 2025-08-06 12:57:45 +08:00
jialin.sun 13981b32e8 1. 添加readme对于隐藏api-key的描述;2.调整格式;3.移除无用import 2025-07-21 15:04:58 +08:00
jialin.sun a585528bbd Initial commit 2025-07-11 14:57:59 +08:00