diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 13:48:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-11-04 13:49:05 +0000 |
commit | 116bcf730ade8d3ac5d76d04c5887b6bba000970 (patch) | |
tree | 24031a92f310f4bd05910a9ac8d56682dfa5e470 /modules/api/api.py | |
parent | f316280ad3634a2343b086a6de0bfcd473e18599 (diff) | |
download | stable-diffusion-webui-gfx803-116bcf730ade8d3ac5d76d04c5887b6bba000970.tar.gz stable-diffusion-webui-gfx803-116bcf730ade8d3ac5d76d04c5887b6bba000970.tar.bz2 stable-diffusion-webui-gfx803-116bcf730ade8d3ac5d76d04c5887b6bba000970.zip |
disable setting options via API until it is fixed by the author
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index a49f3755..8a7ab2f5 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -218,6 +218,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]) |