{#if message.from === "assistant"}
(isTapped = !isTapped)} on:keypress={() => (isTapped = !isTapped)} >
{#if !message.content}
{/if}
{#each tokens as token} {#if token.type === "code"}
{:else} {@html marked(token.raw, options)} {/if} {/each}
{#if isAuthor && !loading && message.content}
dispatch("vote", { score: message.score === 1 ? 0 : 1, id: message.id })} >
dispatch("vote", { score: message.score === -1 ? 0 : -1, id: message.id })} >
{/if}
{/if} {#if message.from === "user"}
{message.content.trim()}
{#if !loading}
{#if downloadLink}
{/if} {#if !readOnly}
dispatch("retry", { content: message.content, id: message.id })} >
{/if}
{/if}
{/if}