mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-15 07:20:31 +08:00
Fix options endpoint not showing the full list of options
This commit is contained in:
parent
59ec427dff
commit
99b05addb1
@ -168,9 +168,9 @@ class ProgressResponse(BaseModel):
|
|||||||
current_image: str = Field(default=None, title="Current image", description="The current image in base64 format. opts.show_progress_every_n_steps is required for this to work.")
|
current_image: str = Field(default=None, title="Current image", description="The current image in base64 format. opts.show_progress_every_n_steps is required for this to work.")
|
||||||
|
|
||||||
fields = {}
|
fields = {}
|
||||||
for key, value in opts.data.items():
|
for key, metadata in opts.data_labels.items():
|
||||||
metadata = opts.data_labels.get(key)
|
value = opts.data.get(key)
|
||||||
optType = opts.typemap.get(type(value), type(value))
|
optType = opts.typemap.get(type(metadata.default), type(value))
|
||||||
|
|
||||||
if (metadata is not None):
|
if (metadata is not None):
|
||||||
fields.update({key: (Optional[optType], Field(
|
fields.update({key: (Optional[optType], Field(
|
||||||
|
Loading…
Reference in New Issue
Block a user