mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-24 08:56:52 +01:00
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:
parent
2ef5490a36
commit
d828844a6f
@ -222,7 +222,7 @@ def apply_interface_values(state, use_persistent=False):
|
|||||||
|
|
||||||
def save_settings(state, preset, extensions_list, show_controls, theme_state):
|
def save_settings(state, preset, extensions_list, show_controls, theme_state):
|
||||||
output = copy.deepcopy(shared.settings)
|
output = copy.deepcopy(shared.settings)
|
||||||
exclude = ['name2', 'greeting', 'context', 'turn_template']
|
exclude = ['name2', 'greeting', 'context', 'turn_template', 'truncation_length']
|
||||||
for k in state:
|
for k in state:
|
||||||
if k in shared.settings and k not in exclude:
|
if k in shared.settings and k not in exclude:
|
||||||
output[k] = state[k]
|
output[k] = state[k]
|
||||||
|
Loading…
Reference in New Issue
Block a user