科林_Cyril Pilgrim
4a464a9e39
chore: cleanup debug logging from __init__.py
2026-03-03 21:52:14 +08:00
科林_Cyril Pilgrim
2dc32b21e5
fix(routes): use decorator-based route registration matching ComfyUI-Manager pattern
2026-03-03 21:28:14 +08:00
科林_Cyril Pilgrim
1a15c8d129
refactor(nodes): optimize OpenAI compatible adapter and translator
...
Motivation:
LLM API calls frequently failed with HTTP 429 and 50x errors, crashing the workflow. Code redundancy existed between different LLM nodes. Non-standard payload fields caused 400 errors with some providers.
Implementation:
1. Extracted api_client.py for centralized HTTP handling with smart retries (Retry-After, backoff, jitter) and structured error logging.
2. Implemented graceful degradation to return error text instead of raising exceptions.
3. Cleaned up non-standard OpenAI payload fields.
4. Added input validation to fail fast on empty prompts or API keys.
5. Refactored both openai_compatible.py and llm_translator.py to reuse LLMClient.
6. Handled dual import registration in __init__.py for robust dynamic loading.
2026-02-28 16:31:06 +08:00
科林_Cyril Pilgrim
f843bbfe95
refactor: flatten architecture with auto-registration (Google best practices)
...
- Moved all nodes to flat nodes/ directory:
- llm_loader.py
- openai_compatible.py
- image_processor.py
- json_extractor.py (NEW)
- Implemented auto-registration in __init__.py:
- Scans nodes/ directory automatically
- No need to manually update imports
- Follows YAGNI principle (4 nodes don't need deep nesting)
- Added JSON Extractor node:
- Extract values from JSON strings by key
- Supports nested keys (e.g., 'user.name')
- Category: 🚦 ComfyUI_LLMs_Toolkit/JSON
- Removed src/ multi-level structure for better discoverability
2026-02-09 21:53:02 +08:00
科林_Cyril Pilgrim
d04fff29e2
refactor: 重构节点分类与清理冗余功能
...
- 将所有 CATEGORY 从 DeepSeek_Toolkit 改为 🚦 ComfyUI_LLMs_Toolkit
- 删除 Video File Uploader 节点 (src/utils/file_uploader.py)
- 移除 OpenAI Compatible 节点的 video_url 入参
2026-02-08 16:31:58 +08:00
科林_Cyril Pilgrim
4762f9be25
refactor: 移除 DeepSeek 本地模型相关代码
...
- 删除 src/core/model_loader.py (本地模型加载器)
- 删除 src/processors/image_generation.py (Janus Pro 图像生成)
- 删除 src/processors/image_understanding.py (图像分析)
- 移除 requirements.txt 中的 Janus 依赖
- 更新 __init__.py 移除相关导入
- 重写 README.md,精简风格
2026-02-08 16:15:30 +08:00
科林_Cyril Pilgrim
63d0766dbd
更新模块初始化文件
2025-06-23 14:27:28 +08:00
科林_Cyril Pilgrim
9a36ff6b1d
update
2025-03-06 15:38:20 +08:00
科林_Cyril Pilgrim
4e8e3035eb
update
2025-02-14 19:40:23 +08:00
科林_Cyril Pilgrim
ec4f9424ed
Fix import error
2025-02-13 12:19:37 +08:00
科林_Cyril Pilgrim
3429170c68
niubi
2025-02-08 19:13:35 +08:00
科林_Cyril Pilgrim
84d6bfe571
push
2025-01-31 23:28:00 +08:00
科林_Cyril Pilgrim
58b5c28edd
push
2025-01-30 00:00:45 +08:00
科林_Cyril Pilgrim
3fdcc74f28
push
2025-01-29 23:14:46 +08:00
科林_Cyril Pilgrim
bf59a8c21c
push
2025-01-29 23:01:11 +08:00
科林_Cyril Pilgrim
1b2498c056
push
2025-01-28 14:12:13 +08:00
科林_Cyril Pilgrim
1062db9e9a
first push
2025-01-28 10:20:38 +08:00