{ showChatMenu = false }}>
{ showChatMenu = !showChatMenu }} >
{ if (chatId) close(); $showSetChatSettings = true }}>
Chat Profile Settings
{ $apiKeyStorage && close(); $apiKeyStorage && startNewChatWithWarning(chatId) }} class="dropdown-item">
New Chat from Default
{ chatId && close(); chatId && startNewChatFromChatId(chatId) }} class="dropdown-item">
New Chat from Current
{ if (chatId) close(); copyChat(chatId) }}>
Clone Chat
{ if (chatId) restartChatSession() }}>
Restart Chat Session
{ if (chatId) close(); clearMessages(chatId) }}>
Clear Chat Messages
{ if (chatId) close(); clearUsage() }}>
Clear Chat Usage
{ close(); exportChatAsJSON(chatId) }}>
Backup Chat JSON
{ if (chatId) close(); chatFileInput.click() }}>
Restore Chat JSON
{ if (chatId) close(); exportAsMarkdown(chatId) }}>
Export Chat Markdown
{ if (chatId) close(); profileFileInput.click() }}>
Restore Profile JSON
{ if (chatId) close(); delChat() }}>
Delete Chat
{ confirmClearChats() }}>
Delete ALL Chats
{ if (chatId) toggleHideSummarized() }}> {#if $globalStorage.hideSummarized}
Show Summarized Messages {:else}
Hide Summarized Messages {/if}
API Key
importChatFromFile(e)} bind:this={chatFileInput} >
importProfileFromFile(e)} bind:this={profileFileInput} >