mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-09 00:01:34 -07:00
Merge branch 'master' into fix/encode-pnginfo
This commit is contained in:
commit
b6cfaaa20b
10 changed files with 132 additions and 37 deletions
|
|
@ -231,6 +231,10 @@ class Api:
|
|||
return options
|
||||
|
||||
def set_config(self, req: OptionsModel):
|
||||
# currently req has all options fields even if you send a dict like { "send_seed": false }, which means it will
|
||||
# overwrite all options with default values.
|
||||
raise RuntimeError('Setting options via API is not supported')
|
||||
|
||||
reqDict = vars(req)
|
||||
for o in reqDict:
|
||||
setattr(shared.opts, o, reqDict[o])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue