{#if $temporaryChatEnabled}
{$i18n.t('Temporary Chat')}
{/if}
{#if $selectedFolder}
{
selectedFolder.set(folder);
await chats.set(await getChatList(localStorage.token, $currentChatPage));
currentChatPage.set(1);
}}
onDelete={async () => {
await chats.set(await getChatList(localStorage.token, $currentChatPage));
currentChatPage.set(1);
selectedFolder.set(null);
}}
/>
{:else}
{#each models as model, modelIdx}
tag.name.toUpperCase())
.join(', ')}
placement="top"
>
{/each}
{#if models[selectedModelIdx]?.name}
{models[selectedModelIdx]?.name}
{:else}
{$i18n.t('Hello, {{name}}', { name: $user?.name })}
{/if}
{#if models[selectedModelIdx]?.info?.meta?.description ?? null}
')
)}
placement="top"
>
{@html marked.parse(
sanitizeResponseContent(
models[selectedModelIdx]?.info?.meta?.description ?? ''
).replaceAll('\n', '
')
)}
{#if models[selectedModelIdx]?.info?.meta?.user}
{/if}
{/if}
{/if}
{
dispatch('upload', e.detail);
}}
on:submit={(e) => {
dispatch('submit', e.detail);
}}
/>
{#if $selectedFolder}
{:else}
{/if}