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