Point WEB_DIRECTORY at the folder that contains .js so ComfyUI loads the extension. Accept saved workflows model names via VALIDATE_INPUTS. Match Ollama duration parsing for keep_alive; always set think for Qwen-style defaults. Strip redacted_thinking from response; remove json_mode and num_ctx; place Connect/info between model and prompt. Made-with: Cursor
22 lines
542 B
Python
22 lines
542 B
Python
"""
|
|
ComfyUI_Simple_Ollama
|
|
=====================
|
|
A lightweight, actively-maintained custom node for talking to
|
|
any Ollama server (localhost or LAN) from within ComfyUI.
|
|
|
|
Author : holger@andersundbesser.de
|
|
License: MIT
|
|
"""
|
|
|
|
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
# ComfyUI auto-loads .js files from WEB_DIRECTORY itself, so point directly
|
|
# at the folder that contains the extension script.
|
|
WEB_DIRECTORY = "./web/js"
|
|
|
|
__all__ = [
|
|
"NODE_CLASS_MAPPINGS",
|
|
"NODE_DISPLAY_NAME_MAPPINGS",
|
|
"WEB_DIRECTORY",
|
|
]
|