{$i18n.t('Base Model (From)')}
{$i18n.t('Prompt suggestions')}
{#if info.meta.suggestion_prompts !== null}
{/if}
{#if info.meta.suggestion_prompts}
{#if info.meta.suggestion_prompts.length > 0}
{#each info.meta.suggestion_prompts as prompt, promptIdx}
{/each}
{:else}
No suggestion prompts
{/if}
{/if}
{
const tagName = e.detail;
info.meta.tags = info.meta.tags.filter((tag) => tag.name !== tagName);
}}
on:add={(e) => {
const tagName = e.detail;
if (!(info?.meta?.tags ?? null)) {
info.meta.tags = [{ name: tagName }];
} else {
info.meta.tags = [...info.meta.tags, { name: tagName }];
}
}}
/>
{$i18n.t('JSON Preview')}
{#if showPreview}
{/if}