Chats

    {#if sortedChats.length === 0}
  • No chats yet...
  • {:else}
    • {#each sortedChats as chat}
    • {chat.name || `Chat ${chat.id}`} delChat(chat.id)} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="delete-btn">
    • {/each}
  • {/if}

Actions

  • 🔑 API key
  • ➕ New chat
  • { const confirmDelete = window.confirm('Are you sure you want to delete all your chats?') if (confirmDelete) { replace('#/').then(() => clearChats()) } }}>🗑️ Clear chats
  • {#if activeChatId}
  • { if (activeChatId) { exportAsMarkdown(activeChatId) } }}>📥 Export chat
  • {/if}