{ dispatch('change', state); }} > fade(e, { duration: 100 })} > { await showSettings.set(true); show = false; if ($mobile) { showSidebar.set(false); } }} >
{$i18n.t('Settings')}
{ dispatch('show', 'archived-chat'); show = false; if ($mobile) { showSidebar.set(false); } }} >
{$i18n.t('Archived Chats')}
{#if role === 'admin'} { show = false; if ($mobile) { showSidebar.set(false); } }} >
{$i18n.t('Playground')}
{ show = false; if ($mobile) { showSidebar.set(false); } }} >
{$i18n.t('Admin Panel')}
{/if} {#if help}
{ show = false; }} href="https://docs.openwebui.com" >
{$i18n.t('Documentation')}
{ show = false; }} href="https://github.com/open-webui/" >
{$i18n.t('Releases')}
{ showShortcuts.set(!$showShortcuts); show = false; }} >
{$i18n.t('Keyboard shortcuts')}
{/if}
{ const res = await userSignOut(); user.set(null); localStorage.removeItem('token'); location.href = res?.redirect_url ?? '/auth'; show = false; }} >
{$i18n.t('Sign Out')}
{#if usage} {#if usage?.user_ids?.length > 0}
0 ? `${$i18n.t('Running')}: ${usage.model_ids.join(', ')} ✨` : ''} >
{ getUsageInfo(); }} >
{$i18n.t('Active Users')}: {usage?.user_ids?.length}
{/if} {/if}