aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigburn <digburned@gmail.com>2022-11-02 21:52:23 +0000
committerdigburn <digburned@gmail.com>2022-11-02 21:52:23 +0000
commit2ac25ea64f31fd0e7dea35d27a52f3646618c3b6 (patch)
tree81aee984061156eddb779a3fc9742e51519f9e69
parent172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff)
fix: Add required parameter to API extras route
-rw-r--r--modules/api/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index 9ee42a17..9069c0ac 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -131,6 +131,7 @@ class ExtrasBaseRequest(BaseModel):
upscaler_1: str = Field(default="None", title="Main upscaler", description=f"The name of the main upscaler to use, it has to be one of this list: {' , '.join([x.name for x in sd_upscalers])}")
upscaler_2: str = Field(default="None", title="Secondary upscaler", description=f"The name of the secondary upscaler to use, it has to be one of this list: {' , '.join([x.name for x in sd_upscalers])}")
extras_upscaler_2_visibility: float = Field(default=0, title="Secondary upscaler visibility", ge=0, le=1, allow_inf_nan=False, description="Sets the visibility of secondary upscaler, values should be between 0 and 1.")
+ upscale_first: bool = Field(default=True, title="Upscale first", description="Should the upscaler run before restoring faces?")
class ExtraBaseResponse(BaseModel):
html_info: str = Field(title="HTML info", description="A series of HTML tags containing the process info.")