Files

42 lines
1.2 KiB
Python

class AnyType(str):
def __ne__(self, other):
return False
any_type = AnyType("*")
class RaccoonConfig:
@classmethod
def INPUT_TYPES(cls):
return {
"optional": {
"checkpoint": (any_type,),
"positive": ("CONDITIONING",),
"negative": ("CONDITIONING",),
"ksampler": (any_type,),
"ksampler_advanced": (any_type,),
},
"required": {
"extra": ("STRING", {
"multiline": True,
"default": "{}",
"tooltip": "JSON opcional: { \"facePrefix\": \"raccoon_char_\" }"
})
}
}
RETURN_TYPES = ()
FUNCTION = "execute"
CATEGORY = "RaccoonAI"
OUTPUT_NODE = True
def execute(self, extra, checkpoint=None, positive=None, negative=None, ksampler=None, ksampler_advanced=None):
return {}
NODE_CLASS_MAPPINGS = { "RaccoonConfig": RaccoonConfig }
NODE_DISPLAY_NAME_MAPPINGS = { "RaccoonConfig": "Raccoon Config 🦝" }
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]