- URL =
set do
description 'Base URL for ComfyUI image generator server'
sensitive true
decode { URI.parse(_1) if _1.present? }
check { value.blank? || value.scheme =~ /\Ahttps?\z/ }
end
- WORKFLOW =
set do
description 'ComfyUI workflow as JSON string'
required { OC::OLLAMA::CHAT::TOOLS::IMAGE_GENERATOR::URL? }
decode { JSON.parse(_1).freeze if _1.present? }
end
- PROMPT_NODE_ID =
set do
description 'Prompt node id for the image generating text prompt'
required { OC::OLLAMA::CHAT::TOOLS::IMAGE_GENERATOR::URL? }
end
- FILENAME_PREFIX_NODE_ID =
set do
description 'Node id for the image filename prefix'
end