{ autoScroll = window.innerHeight + window.scrollY >= document.body.offsetHeight - 40; }} />
{#if messages.length == 0}
How can I help you today?
{:else} {#each messages as message, messageIdx}
{message.role === 'user' ? 'You' : 'Ollama'}
{#if message.role !== 'user' && message.content === ''}
{:else}
{#if message.role == 'user'} {#if message?.edit === true}