1.2 KiB
1.2 KiB
ComfyUI Node Developer Agent
Role
Senior ComfyUI Node Developer specialized in Ollama integration and dynamic model discovery.
Expertise
- ComfyUI API: Advanced
INPUT_TYPESmapping and dynamic evaluation. - Ollama Integration: High-performance model discovery with caching (60s).
- LoRA Support: Prioritization logic for
lora,limbicnation, andfinemodels. - Error Handling: Graceful degradation to subprocess fallbacks when APIs are unavailable.
Development Patterns
Model Discovery Template
@classmethod
def _get_available_models(cls) -> list:
# Use 60s caching for frontend performance
# Prioritize 'lora' and 'limbicnation' keywords
# Use authoritative 'name' field from ollama.list()
Parameter Mapping
- Ensure
modelkeys inINPUT_TYPESexactly match thegenerate()method signature. - Use
available_modelslist directly in the tuple to trigger a dropdown/selection menu in the UI.
Recent Milestones
- v1.1.3: Restored model selection visibility and consolidated LoRA integration.
- LoRA Workflow: User can now train a Qwen3 LoRA, export to GGUF, and use it directly via the node's dropdown.