Height needs a default

main
Estelle Poulin 2 years ago
parent 10973d0cf4
commit cd319b0ab1

@ -1 +1 @@
__version__ = "1.0.2"
__version__ = "1.0.3"

@ -187,8 +187,8 @@ class TextToImageRequestBody(GenerationRequestOptionalParams):
class ImageToImageUpscaleRequestBody(BaseModel):
image: InitImage
width: Optional[UpscaleImageWidth]
height: Optional[UpscaleImageHeight]
width: Optional[UpscaleImageWidth] = None
height: Optional[UpscaleImageHeight] = None
@validator("width", always=True)
def mutually_exclusive(cls, v, values):

Loading…
Cancel
Save