Chats

    {#if sortedChats.length === 0}
  • No chats yet...
  • {:else}
    • {#each sortedChats as chat}
    • (activeChatId = chat.id)}>{chat.name || `Chat ${chat.id}`}
    • {/each}
  • {/if}

Actions

  • { activeChatId = null; }}>🔑 API key
  • { activeChatId = addChat(); }}>➕ New chat
  • { clearChats(); activeChatId = null; }}>🗑️ Clear chats
  • {#if activeChatId }
  • { exportAsMarkdown(activeChatId); }}>📥 Export chat
  • {/if}