Auto-add missing samplers for llama.cpp
This commit is contained in:
parent
37f3a24ac6
commit
276316ae62
|
@ -848,6 +848,7 @@ function setSettingByName(setting, value, trigger) {
|
||||||
|
|
||||||
if ('samplers' === setting) {
|
if ('samplers' === setting) {
|
||||||
value = Array.isArray(value) ? value : LLAMACPP_DEFAULT_ORDER;
|
value = Array.isArray(value) ? value : LLAMACPP_DEFAULT_ORDER;
|
||||||
|
insertMissingArrayItems(LLAMACPP_DEFAULT_ORDER, value);
|
||||||
sortLlamacppItemsByOrder(value);
|
sortLlamacppItemsByOrder(value);
|
||||||
settings.samplers = value;
|
settings.samplers = value;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue