Files
bowtiedbluefin-ComfyUI-AI-C…/__init__.py
T
bowtiedbluefin eff7b715a2 Convert all nodes to traditional ComfyUI format for compatibility
- Converted all 10 nodes from comfy_api.latest to traditional INPUT_TYPES format
- Removed dependency on modern ComfyUI API
- Now compatible with ComfyUI v0.3.68 and similar versions
- Matches Venice API node structure for proven compatibility
- Updated __init__.py to properly import all node mappings
- All nodes now use instance methods instead of classmethods
- Returns tuples instead of io.NodeOutput objects

This ensures the nodes will appear in ComfyUI's Add Node menu.
2025-11-08 00:25:06 -05:00

39 lines
1.3 KiB
Python

"""
ComfyUI AI CustomURL Extension
Traditional ComfyUI node format for maximum compatibility.
"""
# Import all node mappings
from .nodes.text_nodes import NODE_CLASS_MAPPINGS as TEXT_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as TEXT_DISPLAY
from .nodes.image_nodes import NODE_CLASS_MAPPINGS as IMAGE_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as IMAGE_DISPLAY
from .nodes.video_nodes import NODE_CLASS_MAPPINGS as VIDEO_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as VIDEO_DISPLAY
from .nodes.speech_nodes import NODE_CLASS_MAPPINGS as SPEECH_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as SPEECH_DISPLAY
from .nodes.utility_nodes import NODE_CLASS_MAPPINGS as UTILITY_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as UTILITY_DISPLAY
# Combine all mappings
NODE_CLASS_MAPPINGS = {
**TEXT_MAPPINGS,
**IMAGE_MAPPINGS,
**VIDEO_MAPPINGS,
**SPEECH_MAPPINGS,
**UTILITY_MAPPINGS,
}
NODE_DISPLAY_NAME_MAPPINGS = {
**TEXT_DISPLAY,
**IMAGE_DISPLAY,
**VIDEO_DISPLAY,
**SPEECH_DISPLAY,
**UTILITY_DISPLAY,
}
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
print("=" * 60)
print("AI CustomURL Extension Loaded")
print("=" * 60)
print("Nodes: Text, Image, Video, Speech Generation + Utilities")
print("Compatible with: OpenAI, Venice.ai, OpenRouter, Together.ai, Ollama")
print("=" * 60)