api set default script-name

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-31 17:16:47 -04:00
parent 79de6dc396
commit 7167d9d82a
6 changed files with 44 additions and 10 deletions
+2 -2
View File
@@ -200,7 +200,7 @@ ReqTxt2Img = PydanticModelGenerator(
{"key": "sampler_index", "type": Union[int, str], "default": 0},
{"key": "sampler_name", "type": str, "default": "Default"},
{"key": "hr_sampler_name", "type": str, "default": "Same as primary"},
{"key": "script_name", "type": Optional[str], "default": "none"},
{"key": "script_name", "type": Optional[str], "default": ""},
{"key": "script_args", "type": list, "default": []},
{"key": "send_images", "type": bool, "default": True},
{"key": "save_images", "type": bool, "default": False},
@@ -228,7 +228,7 @@ ReqImg2Img = PydanticModelGenerator(
{"key": "denoising_strength", "type": float, "default": 0.5},
{"key": "mask", "type": Optional[str], "default": None},
{"key": "include_init_images", "type": bool, "default": False, "exclude": True},
{"key": "script_name", "type": Optional[str], "default": "none"},
{"key": "script_name", "type": Optional[str], "default": ""},
{"key": "script_args", "type": list, "default": []},
{"key": "send_images", "type": bool, "default": True},
{"key": "save_images", "type": bool, "default": False},