Feature: Add OpenAI video models and improve error handling

- Added OpenAI Sora 3.0 and 3.1 models to video inference (openai:3@0, openai:3@1)
- Added OpenAI architecture to video model search dropdown
- Improved video inference error handling to properly display API error messages
- Replaced hardcoded seed support with flexible useSeed parameter in video inference
- Added selectable output format (WEBP, PNG, JPEG, SVG) to image inference UI
- Updated parameter order: useSeed, seed for better UX consistency
- Removed SEED_SUPPORTED_MODELS hardcoded list for better flexibility
This commit is contained in:
Sirshendu Ganguly
2025-10-09 22:17:12 -04:00
parent 3153eb5fad
commit 5f575aabda
3 changed files with 37 additions and 14 deletions
+6 -1
View File
@@ -121,6 +121,10 @@ class txt2img:
"min": 32,
"max": 128,
}),
"outputFormat": (["WEBP", "PNG", "JPEG", "SVG"], {
"tooltip": "Choose the output image format.",
"default": "WEBP",
}),
"batchSize": ("INT", {
"tooltip": "The number of images to generate in a single request.",
"default": 1,
@@ -218,6 +222,7 @@ class txt2img:
useSeed = kwargs.get("useSeed", True)
useClipSkip = kwargs.get("useClipSkip", True)
dimensions = kwargs.get("dimensions", "Square (512x512)")
outputFormat = kwargs.get("outputFormat", "WEBP")
batchSize = kwargs.get("batchSize", 1)
if (maskImage is not None and seedImage is None):
@@ -230,7 +235,7 @@ class txt2img:
"positivePrompt": positivePrompt,
"model": runwareModel,
"outputType": "base64Data",
"outputFormat": rwUtils.OUTPUT_FORMAT,
"outputFormat": outputFormat,
"outputQuality": rwUtils.OUTPUT_QUALITY,
"numberResults": batchSize,
}