aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-14 06:56:59 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-01-14 06:56:59 +0000
commita95f1353089bdeaccd7c266b40cdd79efedfe632 (patch)
tree03f8e733c89436f31526b513a6435a9a4d9174c5 /modules/api/models.py
parent82725f0ac439f7e3b67858d55900e95330bbd326 (diff)
downloadstable-diffusion-webui-gfx803-a95f1353089bdeaccd7c266b40cdd79efedfe632.tar.gz
stable-diffusion-webui-gfx803-a95f1353089bdeaccd7c266b40cdd79efedfe632.tar.bz2
stable-diffusion-webui-gfx803-a95f1353089bdeaccd7c266b40cdd79efedfe632.zip
change hash to sha256
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index c78095ca..1eb1fcf1 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -224,7 +224,8 @@ class UpscalerItem(BaseModel):
class SDModelItem(BaseModel):
title: str = Field(title="Title")
model_name: str = Field(title="Model Name")
- hash: str = Field(title="Hash")
+ hash: Optional[str] = Field(title="Short hash")
+ sha256: Optional[str] = Field(title="sha256 hash")
filename: str = Field(title="Filename")
config: str = Field(title="Config file")