{#if !showNoTools}
{#if showWebSearch} {/if} {#if showThinking} {/if} {#if showImageGen} {/if} {#if showFileUpload} {@const mimeTypesString = mimeTypes .map((m) => { // if the mime type ends in *, grab the first part so image/* becomes image if (m.endsWith("*")) { return m.split("/")[0]; } // otherwise, return the second part for example application/pdf becomes pdf return m.split("/")[1]; }) .join(", ")}
{#if mimeTypes.includes("image/*")} {/if} {/if} {#if showExtraTools} {#each extraTools as tool} {/each} {/if}
{/if} {@render children?.()}