From d828844a6f4727827b64d6c6ed03f965af089c8f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 14 Mar 2024 08:56:28 -0700 Subject: [PATCH] Small fix: don't save truncation_length to settings.yaml It should derive from model metadata or from a command-line flag. --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 0e9ebe02..f973fa6f 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -222,7 +222,7 @@ def apply_interface_values(state, use_persistent=False): def save_settings(state, preset, extensions_list, show_controls, theme_state): output = copy.deepcopy(shared.settings) - exclude = ['name2', 'greeting', 'context', 'turn_template'] + exclude = ['name2', 'greeting', 'context', 'turn_template', 'truncation_length'] for k in state: if k in shared.settings and k not in exclude: output[k] = state[k]