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