feat: Convert boolean toggles and fix provider settings
- Convert useSteps, useCFGScale, useScheduler, useSeed to BOOLEAN in ImageInference - Convert useFps to BOOLEAN in VideoInference - Reorder parameters so 'use' toggles appear above their corresponding parameters - Fix VideoInference providerSettings input type from DICT to RUNWAREPROVIDERSETTINGS - Update provider settings handling logic to match ImageInference format - Improve UX with native boolean toggles and logical parameter ordering
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
from .utils import runwareUtils as rwUtils
|
||||
|
||||
|
||||
class RunwareProviderSettings:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"customSettings": ("DICT", {
|
||||
"tooltip": "Custom provider settings as a dictionary. Add any provider-specific parameters here.",
|
||||
"default": {},
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
DESCRIPTION = "Configure custom provider-specific settings for video and image generation. Add any provider parameters as a dictionary."
|
||||
FUNCTION = "create_provider_settings"
|
||||
RETURN_TYPES = ("RUNWAREPROVIDERSETTINGS",)
|
||||
RETURN_NAMES = ("Provider Settings",)
|
||||
CATEGORY = "Runware"
|
||||
|
||||
def create_provider_settings(self, **kwargs):
|
||||
custom_settings = kwargs.get("customSettings", {})
|
||||
|
||||
print(f"[Provider Settings] Custom settings: {custom_settings}")
|
||||
return (custom_settings,)
|
||||
|
||||
|
||||
# Node class mappings for ComfyUI registration
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"RunwareProviderSettings": RunwareProviderSettings,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"RunwareProviderSettings": "Runware Provider Settings",
|
||||
}
|
||||
Reference in New Issue
Block a user