wip: direct models

This commit is contained in:
Timothy Jaeryang Baek committed 2025-02-12 01:17:30 -08:00
1 parent 982b1fb7e2
commit 431e97b03a
20 files changed
+194 -61

No files matched your search

@@ -1,6 +1,6 @@
<script lang="ts">
import { toast } from 'svelte-sonner';
import { models, user } from '$lib/stores';
import { models, settings, user } from '$lib/stores';
import { createEventDispatcher, onMount, getContext, tick } from 'svelte';
const dispatch = createEventDispatcher();
@@ -27,7 +27,7 @@
if (config) {
toast.success('Settings saved successfully');
models.set(await getModels(localStorage.token));
models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
}
};
@@ -36,7 +36,7 @@
config.EVALUATION_ARENA_MODELS = [...config.EVALUATION_ARENA_MODELS];
await submitHandler();
models.set(await getModels(localStorage.token));
models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
};
const editModelHandler = async (model, modelIdx) => {
@@ -44,7 +44,7 @@
config.EVALUATION_ARENA_MODELS = [...config.EVALUATION_ARENA_MODELS];
await submitHandler();
models.set(await getModels(localStorage.token));
models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
};
const deleteModelHandler = async (modelIdx) => {
@@ -53,7 +53,7 @@
);
await submitHandler();
models.set(await getModels(localStorage.token));
models.set(await getModels(localStorage.token, $settings?.directConnections ?? null));
};
onMount(async () => {