github-actions[bot]
GitHub deploy: e31f680788910b04a1709271979c1b416f1b839a
efe3ae2
raw
history blame contribute delete
510 Bytes
<script>
import { onMount } from 'svelte';
import { config, models, settings } from '$lib/stores';
import { getModels } from '$lib/apis';
import Models from '$lib/components/workspace/Models.svelte';
onMount(async () => {
await Promise.all([
(async () => {
models.set(
await getModels(
localStorage.token,
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
)
);
})()
]);
});
</script>
{#if $models !== null}
<Models />
{/if}