[skip ci] Reformat code

This commit is contained in:
SillyLossy
2023-05-24 12:38:25 +03:00
parent cb1e015a07
commit 64bc0646c4

View File

@@ -2181,7 +2181,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
};
}
else if(main_api == 'koboldhorde'){
else if (main_api == 'koboldhorde') {
if (preset_settings != 'gui') {
const maxContext = horde_settings.auto_adjust_context_length ? adjustedParams.maxContextLength : max_context;
generate_data = getKoboldGenerationData(finalPromt, this_settings, this_amount_gen, maxContext, isImpersonate);
@@ -3615,7 +3615,7 @@ function changeMainAPI() {
for (const apiName in apiElements) {
const apiObj = apiElements[apiName];
//do not hide items to then proceed to immediately show them.
if(selectedVal === apiName){
if (selectedVal === apiName) {
continue;
}
apiObj.apiSettings.css("display", "none");