mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #2993 from theo77186/llamacpp_xtc
Enable XTC support for llama.cpp
This commit is contained in:
@ -65,6 +65,7 @@ const LLAMACPP_DEFAULT_ORDER = [
|
||||
'typical_p',
|
||||
'top_p',
|
||||
'min_p',
|
||||
'xtc',
|
||||
'temperature',
|
||||
];
|
||||
const OOBA_DEFAULT_ORDER = [
|
||||
@ -834,6 +835,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;
|
||||
|
Reference in New Issue
Block a user