{#if messages.length == 0}
How can I help you today?
{:else} {#each messages as message, messageIdx}
{#if message.role === 'user'} {#if $config === null} User profile {:else} User profile {/if} {:else} Ollama profile {/if}
{#if message.role === 'user'} You {:else} Ollama {message.model ? ` ${message.model}` : ''} {/if}
{#if message.role !== 'user' && message.content === ''}
{:else}
{#if message.role == 'user'} {#if message?.edit === true}