aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-24 11:32:18 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-24 11:32:18 +0000
commit595dca85af9e26b5d76cd64659a5bdd9da4f2b89 (patch)
tree23c88ac8038123d9acf0c19c029c7fc4865ef155 /modules/api/models.py
parent90f02c75220d187e075203a4e3b450bfba392c4d (diff)
downloadstable-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.py8
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.")