rename fields for API for saving/sending images

save images to correct directories
This commit is contained in:
AUTOMATIC
2023-03-11 13:22:59 +03:00
parent bb3ecc3285
commit 3531a50080
3 changed files with 21 additions and 31 deletions

View File

@@ -104,8 +104,8 @@ StableDiffusionTxt2ImgProcessingAPI = PydanticModelGenerator(
{"key": "sampler_index", "type": str, "default": "Euler"},
{"key": "script_name", "type": str, "default": None},
{"key": "script_args", "type": list, "default": []},
{"key": "do_not_send", "type": bool, "default": False},
{"key": "do_not_save", "type": bool, "default": True}
{"key": "send_images", "type": bool, "default": True},
{"key": "save_images", "type": bool, "default": False},
]
).generate_model()
@@ -120,8 +120,8 @@ StableDiffusionImg2ImgProcessingAPI = PydanticModelGenerator(
{"key": "include_init_images", "type": bool, "default": False, "exclude" : True},
{"key": "script_name", "type": str, "default": None},
{"key": "script_args", "type": list, "default": []},
{"key": "do_not_send", "type": bool, "default": False},
{"key": "do_not_save", "type": bool, "default": True}
{"key": "send_images", "type": bool, "default": True},
{"key": "save_images", "type": bool, "default": False},
]
).generate_model()