{#if messages.length == 0 && suggestions !== 'false'}
{/if} {#if autoScroll === false && messages.length > 0}
{ autoScroll = true; window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }); }} >
{/if}
{ submitPrompt(prompt); }} >
{ if (e.keyCode == 13 && !e.shiftKey) { e.preventDefault(); } if (prompt !== '' && e.keyCode == 13 && !e.shiftKey) { submitPrompt(prompt); } }} rows="1" on:input={(e) => { e.target.style.height = ''; e.target.style.height = Math.min(e.target.scrollHeight, 200) + 2 + 'px'; }} /> {#if fileUploadEnabled}
{ console.log('file'); }} >
{/if}
{#if messages.length == 0 || messages.at(-1).done == true} {#if speechRecognitionEnabled}
{ speechRecognitionHandler(); }} > {#if speechRecognitionListening}
{:else}
{/if}
{/if}
{:else}
{/if}
LLMs can make mistakes. Verify important information.