From 3b9e21ecf9e0f62cfdb1ef875578a2b1aa679e87 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 26 Nov 2024 00:58:40 -0800 Subject: [PATCH] refac --- src/lib/components/admin/Settings/Evaluations.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Settings/Evaluations.svelte b/src/lib/components/admin/Settings/Evaluations.svelte index bf64720bb..c0d1b4f32 100644 --- a/src/lib/components/admin/Settings/Evaluations.svelte +++ b/src/lib/components/admin/Settings/Evaluations.svelte @@ -5,6 +5,7 @@ const dispatch = createEventDispatcher(); import { getModels } from '$lib/apis'; + import { getConfig, updateConfig } from '$lib/apis/evaluations'; import Switch from '$lib/components/common/Switch.svelte'; import Spinner from '$lib/components/common/Spinner.svelte'; @@ -12,7 +13,6 @@ import Plus from '$lib/components/icons/Plus.svelte'; import Model from './Evaluations/Model.svelte'; import ArenaModelModal from './Evaluations/ArenaModelModal.svelte'; - import { getConfig, updateConfig } from '$lib/apis/evaluations'; const i18n = getContext('i18n'); @@ -27,6 +27,7 @@ if (config) { toast.success('Settings saved successfully'); + models.set(await getModels(localStorage.token)); } };