Height needs a default

main
Estelle Poulin 1 year 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): class ImageToImageUpscaleRequestBody(BaseModel):
image: InitImage image: InitImage
width: Optional[UpscaleImageWidth] width: Optional[UpscaleImageWidth] = None
height: Optional[UpscaleImageHeight] height: Optional[UpscaleImageHeight] = None
@validator("width", always=True) @validator("width", always=True)
def mutually_exclusive(cls, v, values): def mutually_exclusive(cls, v, values):

Loading…
Cancel
Save