also return the removed field to sdapi/v1/upscalers because someone might have relied on it existing

This commit is contained in:
AUTOMATIC 2023-01-24 10:09:30 +03:00
parent 42a70d7477
commit 602a1864b0
2 changed files with 2 additions and 0 deletions

View file

@ -380,6 +380,7 @@ class Api:
"name": upscaler.name, "name": upscaler.name,
"model_name": upscaler.scaler.model_name, "model_name": upscaler.scaler.model_name,
"model_path": upscaler.data_path, "model_path": upscaler.data_path,
"model_url": None,
"scale": upscaler.scale, "scale": upscaler.scale,
} }
for upscaler in shared.sd_upscalers for upscaler in shared.sd_upscalers

View file

@ -219,6 +219,7 @@ class UpscalerItem(BaseModel):
name: str = Field(title="Name") name: str = Field(title="Name")
model_name: Optional[str] = Field(title="Model Name") model_name: Optional[str] = Field(title="Model Name")
model_path: Optional[str] = Field(title="Path") model_path: Optional[str] = Field(title="Path")
model_url: Optional[str] = Field(title="URL")
scale: Optional[float] = Field(title="Scale") scale: Optional[float] = Field(title="Scale")
class SDModelItem(BaseModel): class SDModelItem(BaseModel):