support detecting midas model

fix broken api for checkpoint list
This commit is contained in:
AUTOMATIC
2023-01-27 11:54:19 +03:00
parent d2ac95fa7b
commit 6f31d2210c
3 changed files with 11 additions and 8 deletions

View File

@@ -228,7 +228,7 @@ class SDModelItem(BaseModel):
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")
config: Optional[str] = Field(title="Config file")
class HypernetworkItem(BaseModel):
name: str = Field(title="Name")