Small fix: don't save truncation_length to settings.yaml

It should derive from model metadata or from a command-line flag.
This commit is contained in:
oobabooga 2024-03-14 08:56:28 -07:00
parent 2ef5490a36
commit d828844a6f

View file

@ -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]