{$i18n.t('Chat History')}
{ toggleSaveChatHistory(); }} > {#if saveChatHistory === true}
{$i18n.t('On')}
{:else}
{$i18n.t('Off')}
{/if}
{$i18n.t('This setting does not sync across browsers or devices.')}
{$i18n.t('Import Chats')}
{ exportChats(); }} >
{$i18n.t('Export Chats')}
{#if showDeleteConfirm}
Are you sure?
{ deleteChats(); showDeleteConfirm = false; }} >
{ showDeleteConfirm = false; }} >
{:else}
{ showDeleteConfirm = true; }} >
{$i18n.t('Delete Chats')}
{/if} {#if $user?.role === 'admin'}
{ exportAllUserChats(); }} >
{$i18n.t('Export All Chats (All Users)')}
{ const res = resetVectorDB(localStorage.token).catch((error) => { toast.error(error); return null; }); if (res) { toast.success($i18n.t('Success')); } }} >
{$i18n.t('Reset Vector Storage')}
{/if}