aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-05 07:23:59 +0000
committerGitHub <noreply@github.com>2023-01-05 07:23:59 +0000
commit24e21c07108c0691636c0a54bf3936b847102330 (patch)
treebf2ea9b568fb91e426f5cca5d3cd343d8b96aae9 /modules/api/models.py
parent2e30997450835ed8f80ab5e8f02f7d4c7f26dd3f (diff)
parent1288a3bb7d21064e5bd0af7158a3840886027c51 (diff)
downloadstable-diffusion-webui-gfx803-24e21c07108c0691636c0a54bf3936b847102330.tar.gz
stable-diffusion-webui-gfx803-24e21c07108c0691636c0a54bf3936b847102330.tar.bz2
stable-diffusion-webui-gfx803-24e21c07108c0691636c0a54bf3936b847102330.zip
Merge pull request #6328 from lolsuffocate/fix-png-info-api
Make pnginfoapi return all image info
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index 4a632c68..d8198a27 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -157,7 +157,8 @@ class PNGInfoRequest(BaseModel):
image: str = Field(title="Image", description="The base64 encoded PNG image")
class PNGInfoResponse(BaseModel):
- info: str = Field(title="Image info", description="A string with all the info the image had")
+ 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")
class ProgressRequest(BaseModel):
skip_current_image: bool = Field(default=False, title="Skip current image", description="Skip current image serialization")
@@ -258,4 +259,4 @@ class EmbeddingItem(BaseModel):
class EmbeddingsResponse(BaseModel):
loaded: Dict[str, EmbeddingItem] = Field(title="Loaded", description="Embeddings loaded for the current model")
- skipped: Dict[str, EmbeddingItem] = Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)") \ No newline at end of file
+ skipped: Dict[str, EmbeddingItem] = Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)")