diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-26 03:52:18 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-26 03:52:18 +0000 |
commit | 72ee347eabf04d1a238a738a03e7973cc2a46ca3 (patch) | |
tree | 9955c6f20f1ff8dae590c68e534073f2cea2319c /modules/api/models.py | |
parent | bb90b0ff42ea55cbc73df15ea1ef8fd79af2e026 (diff) | |
download | stable-diffusion-webui-gfx803-72ee347eabf04d1a238a738a03e7973cc2a46ca3.tar.gz stable-diffusion-webui-gfx803-72ee347eabf04d1a238a738a03e7973cc2a46ca3.tar.bz2 stable-diffusion-webui-gfx803-72ee347eabf04d1a238a738a03e7973cc2a46ca3.zip |
update pnginfo checkpoint to return dict with parsed values
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index 731ab03d..94eca97d 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -178,7 +178,8 @@ class PNGInfoRequest(BaseModel): class PNGInfoResponse(BaseModel): info: str = Field(title="Image info", description="A string with the parameters used to generate the image") - items: dict = Field(title="Items", description="An object containing all the info the image had") + items: dict = Field(title="Items", description="A dictionary containing all the other fields the image had") + parameters: dict = Field(title="Parameters", description="A dictionary with parsed generation info fields") class ProgressRequest(BaseModel): skip_current_image: bool = Field(default=False, title="Skip current image", description="Skip current image serialization") |