{#if messages.length == 0}
Get up and running with large language models, locally.
Run Llama 2, Code Llama, and other models.
Customize and create your own.
{:else} {#each messages as message, messageIdx}
{#if message.role != 'user' && message.content == ''}
{:else}
{@html marked.parse(message.content)}
{/if}
{#if message.role != 'user' && message.done} {/if}
{/each} {/if}
{#if messages.length != 0 && messages.at(-1).role == 'assistant' && messages.at(-1).done == true}
{/if}