add support for 6 multiprompt
This commit is contained in:
@@ -2154,6 +2154,8 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:kling-video@2.6-pro (Kling VIDEO 2.6 Pro)",
|
||||
"klingai:kling-video@3-pro (Kling VIDEO 3.0 Pro)",
|
||||
"klingai:kling-video@3-standard (Kling VIDEO 3.0 Standard)",
|
||||
"klingai:kling-video@o3-pro (Kling VIDEO O3 Pro)",
|
||||
"klingai:kling-video@o3-standard (Kling VIDEO O3 Standard)",
|
||||
"klingai:avatar@2.0-standard (KlingAI Avatar 2.0 Standard)",
|
||||
"klingai:avatar@2.0-pro (KlingAI Avatar 2.0 Pro)",
|
||||
],
|
||||
@@ -2251,6 +2253,8 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:kling-video@2.6-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@3-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@3-standard": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@o3-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@o3-standard": {"width": 1920, "height": 1080},
|
||||
"klingai:avatar@2.0-standard": {"width": 0, "height": 0},
|
||||
"klingai:avatar@2.0-pro": {"width": 0, "height": 0},
|
||||
"google:2@0": {"width": 1280, "height": 720},
|
||||
@@ -2328,6 +2332,8 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:kling-video@2.6-pro": "1080p",
|
||||
"klingai:kling-video@3-pro": "1080p",
|
||||
"klingai:kling-video@3-standard": "1080p",
|
||||
"klingai:kling-video@o3-pro": "1080p",
|
||||
"klingai:kling-video@o3-standard": "1080p",
|
||||
"klingai:avatar@2.0-standard": null, // No resolution support
|
||||
"klingai:avatar@2.0-pro": null, // No resolution support
|
||||
"google:2@0": "720p",
|
||||
|
||||
@@ -119,6 +119,9 @@ class RunwareKlingProviderSettings:
|
||||
"MultiPrompt Segment 5": ("RUNWAREKLINGMULTIPROMPTSEGMENT", {
|
||||
"tooltip": "Connect a Runware Kling MultiPrompt Segment. Only used when 'Use Multiprompt' is enabled.",
|
||||
}),
|
||||
"MultiPrompt Segment 6": ("RUNWAREKLINGMULTIPROMPTSEGMENT", {
|
||||
"tooltip": "Connect a Runware Kling MultiPrompt Segment. Only used when 'Use Multiprompt' is enabled.",
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +199,7 @@ class RunwareKlingProviderSettings:
|
||||
# Add multiPrompt only if useMultiprompt is enabled
|
||||
if useMultiprompt:
|
||||
segments: List[Dict[str, Any]] = []
|
||||
for i in range(1, 6):
|
||||
for i in range(1, 7):
|
||||
segment = kwargs.get(f"MultiPrompt Segment {i}")
|
||||
if segment is not None and isinstance(segment, dict):
|
||||
prompt = segment.get("prompt", "").strip()
|
||||
|
||||
@@ -34,6 +34,9 @@ class RunwareKlingProviderSettingsMultiPrompt:
|
||||
"MultiPrompt Segment 5": ("RUNWAREKLINGMULTIPROMPTSEGMENT", {
|
||||
"tooltip": "Connect a Runware Kling MultiPrompt Segment",
|
||||
}),
|
||||
"MultiPrompt Segment 6": ("RUNWAREKLINGMULTIPROMPTSEGMENT", {
|
||||
"tooltip": "Connect a Runware Kling MultiPrompt Segment",
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +52,7 @@ class RunwareKlingProviderSettingsMultiPrompt:
|
||||
provider_settings = kwargs.get("providerSettings")
|
||||
segments: List[Dict[str, Any]] = []
|
||||
|
||||
for i in range(1, 6):
|
||||
for i in range(1, 7):
|
||||
segment = kwargs.get(f"MultiPrompt Segment {i}")
|
||||
if segment is not None and isinstance(segment, dict):
|
||||
prompt = segment.get("prompt", "").strip()
|
||||
|
||||
@@ -20,6 +20,8 @@ class videoModelSearch:
|
||||
"klingai:kling-video@2.6-pro (Kling VIDEO 2.6 Pro)",
|
||||
"klingai:kling-video@3-pro (Kling VIDEO 3.0 Pro)",
|
||||
"klingai:kling-video@3-standard (Kling VIDEO 3.0 Standard)",
|
||||
"klingai:kling-video@o3-pro (Kling VIDEO O3 Pro)",
|
||||
"klingai:kling-video@o3-standard (Kling VIDEO O3 Standard)",
|
||||
],
|
||||
"Veo": [
|
||||
"google:2@0 (Veo 2.0)",
|
||||
@@ -136,6 +138,8 @@ class videoModelSearch:
|
||||
"klingai:kling-video@2.6-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@3-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@3-standard": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@o3-pro": {"width": 1920, "height": 1080},
|
||||
"klingai:kling-video@o3-standard": {"width": 1920, "height": 1080},
|
||||
|
||||
# Veo Models
|
||||
"google:2@0": {"width": 1280, "height": 720},
|
||||
@@ -251,6 +255,8 @@ class videoModelSearch:
|
||||
"klingai:kling-video@2.6-pro": "1080p",
|
||||
"klingai:kling-video@3-pro": "1080p",
|
||||
"klingai:kling-video@3-standard": "1080p",
|
||||
"klingai:kling-video@o3-pro": "1080p",
|
||||
"klingai:kling-video@o3-standard": "1080p",
|
||||
|
||||
# Veo Models
|
||||
"google:2@0": "720p",
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user