Auto-add missing samplers for llama.cpp

This commit is contained in:
Cohee 2024-10-16 20:51:32 +03:00
parent 37f3a24ac6
commit 276316ae62
1 changed files with 1 additions and 0 deletions

View File

@ -848,6 +848,7 @@ function setSettingByName(setting, value, trigger) {
if ('samplers' === setting) {
value = Array.isArray(value) ? value : LLAMACPP_DEFAULT_ORDER;
insertMissingArrayItems(LLAMACPP_DEFAULT_ORDER, value);
sortLlamacppItemsByOrder(value);
settings.samplers = value;
return;