diff options
author | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-10-24 11:32:18 +0000 |
---|---|---|
committer | Bruno Seoane <brunoseoaneamarillo@gmail.com> | 2022-10-24 11:32:18 +0000 |
commit | 595dca85af9e26b5d76cd64659a5bdd9da4f2b89 (patch) | |
tree | 23c88ac8038123d9acf0c19c029c7fc4865ef155 /modules/api/models.py | |
parent | 90f02c75220d187e075203a4e3b450bfba392c4d (diff) | |
download | stable-diffusion-webui-gfx803-595dca85af9e26b5d76cd64659a5bdd9da4f2b89.tar.gz stable-diffusion-webui-gfx803-595dca85af9e26b5d76cd64659a5bdd9da4f2b89.tar.bz2 stable-diffusion-webui-gfx803-595dca85af9e26b5d76cd64659a5bdd9da4f2b89.zip |
Reverse run_extras change
Update serialization on the batch images endpoint
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index e461d397..fca2f991 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -138,12 +138,12 @@ class ExtrasSingleImageRequest(ExtrasBaseRequest): class ExtrasSingleImageResponse(ExtraBaseResponse): image: str = Field(default=None, title="Image", description="The generated image in base64 format.") -class ImageItem(BaseModel): - data: str = Field(title="image data") - name: str = Field(title="filename") +class FileData(BaseModel): + data: str = Field(title="File data", description="Base64 representation of the file") + name: str = Field(title="File name") class ExtrasBatchImagesRequest(ExtrasBaseRequest): - imageList: list[str] = Field(title="Images", description="List of images to work on. Must be Base64 strings") + imageList: list[FileData] = Field(title="Images", description="List of images to work on. Must be Base64 strings") class ExtrasBatchImagesResponse(ExtraBaseResponse): images: list[str] = Field(title="Images", description="The generated images in base64 format.") |