{#if message.from === "assistant"}
(isTapped = !isTapped)} on:keypress={() => (isTapped = !isTapped)} >
{#if searchUpdates && searchUpdates.length > 0}
{/if} {#if !message.content && (webSearchIsDone || (webSearchMessages && webSearchMessages.length === 0))}
{/if}
{#each tokens as token} {#if token.type === "code"}
{:else} {@html marked.parse(token.raw, options)} {/if} {/each}
{#if webSearchSources?.length}
Sources:
{#each webSearchSources as { link, title, hostname }}
{hostname.replace(/^www\./, "")}
{/each}
{/if}
{#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 })} >
{ isCopied = true; }} classNames="ml-1.5 !rounded-sm !p-1 !text-sm !text-gray-400 focus:!ring-0 hover:!text-gray-500 dark:!text-gray-400 dark:hover:!text-gray-300 !border-none !shadow-none" value={message.content} />
{/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}