From 442f99e075e2a00876122a82495691959d65c4e7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 26 Nov 2024 08:55:34 -0800 Subject: [PATCH] refac --- .../admin/Settings/Models/ConfigureModelsModal.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte b/src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte index be7fc8a45..cf78e4180 100644 --- a/src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte +++ b/src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte @@ -51,6 +51,8 @@ onMount(async () => { config = await getModelsConfig(localStorage.token); + defaultModelIds = config.DEFAULT_MODELS.split(',').filter((id) => id); + const modelOrderList = config.MODEL_ORDER_LIST || []; const allModelIds = $models.map((model) => model.id);