{#if !assistant}
{#if modelHasTools} {/if} {#if modelIsMultimodal || modelHasTools} {@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 modelHasTools} {#each extraTools as tool} {/each} {/if} {#if modelHasTools} {/if}
{/if} {@render children?.()}