Skip to content

Commit

Permalink
also return the removed field to sdapi/v1/upscalers because someone m…
Browse files Browse the repository at this point in the history
…ight have relied on it existing
  • Loading branch information
AUTOMATIC1111 committed Jan 24, 2023
1 parent 42a70d7 commit 602a186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def get_upscalers(self):
"name": upscaler.name,
"model_name": upscaler.scaler.model_name,
"model_path": upscaler.data_path,
"model_url": None,
"scale": upscaler.scale,
}
for upscaler in shared.sd_upscalers
Expand Down
1 change: 1 addition & 0 deletions modules/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class UpscalerItem(BaseModel):
name: str = Field(title="Name")
model_name: Optional[str] = Field(title="Model Name")
model_path: Optional[str] = Field(title="Path")
model_url: Optional[str] = Field(title="URL")
scale: Optional[float] = Field(title="Scale")

class SDModelItem(BaseModel):
Expand Down

0 comments on commit 602a186

Please sign in to comment.