{#if Object.keys(chatHistory).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 Object.keys(chatHistory) as messageIdx}
{#if chatHistory[messageIdx].role != 'user' && chatHistory[messageIdx].content == ''}
{:else}
{@html marked.parse(chatHistory[messageIdx].content)}
{/if}
{#if chatHistory[messageIdx].role != 'user' && chatHistory[messageIdx].done} {/if}
{/each} {/if}