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:
Sirshendu Ganguly
2025-09-08 13:15:47 -04:00
parent 4333874a93
commit f85b8f809d
23 changed files with 347 additions and 122 deletions
+36
View File
@@ -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",
}