{ show = !show; }} >
{title != '' ? title.split(' ').slice(0, 6).join(' ') : 'Ollama Web UI'}
{ createNewChat(); }} >
{ createNewChat(); }} >
New Chat
{ show = !show; }} >
{#each _chats as chat, i}
{ if (chat.id !== chatTitleEditIdx) { chatTitleEditIdx = null; chatTitle = ''; } loadChat(chat.id); }} >
{#if chatTitleEditIdx === chat.id}
{:else} {chat.title} {/if}
{#if chat.id === selectedChatId}
{#if chatTitleEditIdx === chat.id}
{ editChatTitle(chat.id, chatTitle); chatTitleEditIdx = null; chatTitle = ''; }} >
{ chatTitleEditIdx = null; chatTitle = ''; }} >
{:else}
{ chatTitle = chat.title; chatTitleEditIdx = chat.id; // editChatTitle(chat.id, 'a'); }} >
{ deleteChat(chat.id); }} >
{/if}
{/if}
{/each}
{ importFileInputElement.click(); // importChatHistory(); }} >
Import
{ exportChatHistory(); }} >
Export
{ deleteChatHistory(); }} >
Clear conversations
{ openSettings(); }} >
Settings