|
@@ -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));
|
|
|
}
|
|
|
};
|
|
|
|