mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 18:51:31 +00:00
Fix validation error by updating SDModelItem config field to be optional. Changed config field in SDModelItem model to Optional[str] with default value None. (#1096)
This commit is contained in:
committed by
GitHub
parent
1a26e73deb
commit
4eadf1b5e6
@@ -262,7 +262,7 @@ class SDModelItem(BaseModel):
|
|||||||
hash: Optional[str] = Field(title="Short hash")
|
hash: Optional[str] = Field(title="Short hash")
|
||||||
sha256: Optional[str] = Field(title="sha256 hash")
|
sha256: Optional[str] = Field(title="sha256 hash")
|
||||||
filename: str = Field(title="Filename")
|
filename: str = Field(title="Filename")
|
||||||
config: Optional[str] = Field(title="Config file")
|
config: Optional[str] = Field(default=None, title="Config file")
|
||||||
|
|
||||||
class SDVaeItem(BaseModel):
|
class SDVaeItem(BaseModel):
|
||||||
class Config:
|
class Config:
|
||||||
|
|||||||
Reference in New Issue
Block a user