This commit is contained in:
Timothy Jaeryang Baek 2025-09-13 19:04:07 +04:00
parent f68d1ba394
commit 031cf38655

View file

@ -1420,30 +1420,32 @@
<div class="flex self-center w-[1px] h-4 mx-1 bg-gray-50 dark:bg-gray-800" /> <div class="flex self-center w-[1px] h-4 mx-1 bg-gray-50 dark:bg-gray-800" />
<IntegrationsMenu {#if showWebSearchButton || showImageGenerationButton || showCodeInterpreterButton || showToolsButton || (toggleFilters && toggleFilters.length > 0)}
selectedModels={atSelectedModel ? [atSelectedModel.id] : selectedModels} <IntegrationsMenu
{toggleFilters} selectedModels={atSelectedModel ? [atSelectedModel.id] : selectedModels}
{showWebSearchButton} {toggleFilters}
{showImageGenerationButton} {showWebSearchButton}
{showCodeInterpreterButton} {showImageGenerationButton}
bind:selectedToolIds {showCodeInterpreterButton}
bind:selectedFilterIds bind:selectedToolIds
bind:webSearchEnabled bind:selectedFilterIds
bind:imageGenerationEnabled bind:webSearchEnabled
bind:codeInterpreterEnabled bind:imageGenerationEnabled
onClose={async () => { bind:codeInterpreterEnabled
await tick(); onClose={async () => {
await tick();
const chatInput = document.getElementById('chat-input'); const chatInput = document.getElementById('chat-input');
chatInput?.focus(); chatInput?.focus();
}} }}
>
<div
class="bg-transparent hover:bg-gray-100 text-gray-700 dark:text-white dark:hover:bg-gray-800 rounded-full size-8 flex justify-center items-center outline-hidden focus:outline-hidden"
> >
<Component className="size-4.5" strokeWidth="1.5" /> <div
</div> class="bg-transparent hover:bg-gray-100 text-gray-700 dark:text-white dark:hover:bg-gray-800 rounded-full size-8 flex justify-center items-center outline-hidden focus:outline-hidden"
</IntegrationsMenu> >
<Component className="size-4.5" strokeWidth="1.5" />
</div>
</IntegrationsMenu>
{/if}
<div class="ml-1 flex gap-1.5"> <div class="ml-1 flex gap-1.5">
{#if showToolsButton} {#if showToolsButton}