only load horde models when kobold active

This commit is contained in:
RossAscends
2023-04-07 22:21:05 +09:00
parent 21108ffe13
commit 4170461f4c

View File

@@ -1,4 +1,4 @@
import { saveSettingsDebounced, changeMainAPI, callPopup, setGenerationProgress } from "../script.js"; import { saveSettingsDebounced, changeMainAPI, callPopup, setGenerationProgress, main_api } from "../script.js";
import { delay } from "./utils.js"; import { delay } from "./utils.js";
export { export {
@@ -182,8 +182,7 @@ $(document).ready(function () {
// Trigger status check // Trigger status check
changeMainAPI(); changeMainAPI();
saveSettingsDebounced(); saveSettingsDebounced();
if (main_api === 'kobold' && horde_settings.use_horde) {
if (horde_settings.use_horde) {
await getHordeModels(); await getHordeModels();
} }
}); });