open-webui/src/routes/(app)/workspace/tools/+page.svelte
Timothy Jaeryang Baek ee05455155 refac
2024-11-12 15:46:44 -08:00

20 lines
373 B
Svelte

<script>
import { onMount } from 'svelte';
import { tools } from '$lib/stores';
import { getTools } from '$lib/apis/tools';
import Tools from '$lib/components/workspace/Tools.svelte';
onMount(async () => {
await Promise.all([
(async () => {
tools.set(await getTools(localStorage.token));
})()
]);
});
</script>
{#if $tools !== null}
<Tools />
{/if}