{publicConfig.PUBLIC_APP_NAME}
New Chat
{#each Object.entries(groupedConversations) as [group, convs]} {#if convs.length}
{titles[group]}
{#each convs as conv}
{/each} {/if} {/each}
{#if hasMore}
{/if}
{#if user?.username || user?.email}
{ await fetch(`${base}/logout`, { method: "POST", }); await goto(base + "/", { invalidateAll: true }); }} class="group flex items-center gap-1.5 rounded-lg pl-2.5 pr-2 hover:bg-gray-100 dark:hover:bg-gray-700" >
{user?.username || user?.email}
{#if !user.logoutDisabled}
Sign Out
{/if}
{:else}
{ $loginModalOpen = true; }} class="flex h-9 flex-none items-center gap-1.5 rounded-lg pl-2.5 pr-2 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-700" > Login
{/if}
Models
{nModels}
Personas
{nPersonas}
Settings
{ switchTheme(); theme = localStorage.theme; }} aria-label="Toggle theme" class="flex size-9 min-w-[1.5em] flex-none items-center justify-center rounded-lg p-2 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-700" > {#if browser} {#if theme === "dark"}
{:else}
{/if} {/if}