{#if $showCallOverlay}
{/if} {#if !chatIdProp || (loaded && chatIdProp)}
0} {chat} {initNewChat} /> {#if $banners.length > 0 && messages.length === 0 && !$chatId && selectedModels.length <= 1}
{#each $banners.filter( (b) => (b.dismissible ? !JSON.parse(localStorage.getItem('dismissedBannerIds') ?? '[]').includes(b.id) : true) ) as banner}
{ const bannerId = e.detail; localStorage.setItem( 'dismissedBannerIds', JSON.stringify( [ bannerId, ...JSON.parse(localStorage.getItem('dismissedBannerIds') ?? '[]') ].filter((id) => $banners.find((b) => b.id === id)) ) ); }} /> {/each}
{/if}
{ autoScroll = messagesContainerElement.scrollHeight - messagesContainerElement.scrollTop <= messagesContainerElement.clientHeight + 5; }} >
0} {sendPrompt} {continueGeneration} {regenerateResponse} />
{ const model = $models.find((m) => m.id === e); if (model?.info?.meta?.toolIds ?? false) { return [...new Set([...a, ...model.info.meta.toolIds])]; } return a; }, [])} {selectedModels} {messages} {submitPrompt} {stopResponse} />
{/if}