{#if loginModalOpen} { loginModalOpen = false; }} /> {/if} { if ($page.data.loginRequired) { loginModalOpen = true; } else { dispatch("message", ev.detail); } }} on:vote on:continue on:retry={(ev) => { if (!loading) dispatch("retry", ev.detail); }} />
{#if sources.length}
{#each sources as source, index} {#await source then src}
input content
{/await} {/each}
{/if}
{#if $page.data.settings?.searchEnabled && !assistant} {/if} {#if loading} dispatch("stop")} /> {:else if lastIsError} dispatch("retry", { id: messages[messages.length - 1].id, content: messages[messages.length - 1].content, })} /> {:else}
{#if currentModel.multimodal} {/if} {#if messages && messages[messages.length - 1]?.interrupted && !isReadOnly} dispatch("continue", { id: messages[messages.length - 1].id, })} /> {/if}
{/if}
{#if onDrag && currentModel.multimodal} {:else}
{#if lastIsError} {:else} { if ($page.data.loginRequired) { ev.preventDefault(); loginModalOpen = true; } }} maxRows={6} disabled={isReadOnly || lastIsError} /> {/if} {#if loading} {:else} {/if}
{/if}

Model: {#if !assistant} {currentModel.displayName}{:else} {@const model = models.find((m) => m.id === assistant?.modelId)} {model?.displayName}{/if} ยท
Generated content may be inaccurate or false.

{#if messages.length} {/if}