This commit is contained in:
Timothy Jaeryang Baek 2024-11-26 00:58:40 -08:00
parent 5fac25a002
commit 3b9e21ecf9

View File

@ -5,6 +5,7 @@
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
import { getModels } from '$lib/apis'; import { getModels } from '$lib/apis';
import { getConfig, updateConfig } from '$lib/apis/evaluations';
import Switch from '$lib/components/common/Switch.svelte'; import Switch from '$lib/components/common/Switch.svelte';
import Spinner from '$lib/components/common/Spinner.svelte'; import Spinner from '$lib/components/common/Spinner.svelte';
@ -12,7 +13,6 @@
import Plus from '$lib/components/icons/Plus.svelte'; import Plus from '$lib/components/icons/Plus.svelte';
import Model from './Evaluations/Model.svelte'; import Model from './Evaluations/Model.svelte';
import ArenaModelModal from './Evaluations/ArenaModelModal.svelte'; import ArenaModelModal from './Evaluations/ArenaModelModal.svelte';
import { getConfig, updateConfig } from '$lib/apis/evaluations';
const i18n = getContext('i18n'); const i18n = getContext('i18n');
@ -27,6 +27,7 @@
if (config) { if (config) {
toast.success('Settings saved successfully'); toast.success('Settings saved successfully');
models.set(await getModels(localStorage.token));
} }
}; };