Files
stable-diffusion-webui-forge/modules_forge
altoiddealer 2c543719e3 Improve options management (#2078)
- `/sdapi/v1/options` GET now calls `get_config()` from **sysinfo** module, instead of from its own version of the function.

- Defined a new, flexible and more robust `set_config()` function in **sysinfo** module, which:
  - obsoletes redundant code
  - skips updating values that are unchanged
  - has flexible args for both API and UI use

- `/sdapi/v1/options` POST and `override_settings` now use the new `set_config()` function.  `set_config()` could possibly obsolete additional functions, but I'm not going to get into that just yet.

- Options for `forge_additional_modules` can now be provided either as the file path, or just the module name.

- Most importantly, `refresh_model_loading_parameters()` is now only called ONCE per request, and **only** if necessary.

- It is now much easier to call `shared.opts.save()` as needed
2024-10-16 11:21:54 +01:00
..
2024-08-20 15:00:56 +01:00
2024-08-10 19:24:19 -07:00
2024-08-18 00:12:53 -07:00
2024-02-23 18:39:32 -08:00
2024-08-10 19:58:04 -07:00
2024-02-09 14:38:57 -08:00
2024-08-17 08:29:08 -07:00
2024-08-13 15:45:45 -07:00
2024-08-15 01:25:47 -07:00
2024-08-03 15:10:37 -07:00
2024-08-03 15:54:39 -07:00
2024-08-08 13:33:03 -07:00