mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Minor changes
This commit is contained in:
parent
570d5b8936
commit
004fd8316c
3 changed files with 16 additions and 13 deletions
|
|
@ -343,6 +343,7 @@ def save_settings(state, preset, extensions_list, show_controls, theme_state, ma
|
|||
try:
|
||||
with open(settings_path, 'r', encoding='utf-8') as f:
|
||||
existing_settings = yaml.safe_load(f.read()) or {}
|
||||
|
||||
if 'default_extensions' in existing_settings:
|
||||
output['default_extensions'] = existing_settings['default_extensions']
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue