Skip to content

Commit

Permalink
fix: make sure file upload is always last
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Dec 18, 2024
1 parent 83162d6 commit 46b0272
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/lib/components/chat/ChatInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,20 @@
{/if}
</button>
{/if}
{#if modelHasTools}
{#each extraTools as tool}
<button
class="active-tool base-tool"
disabled={loading}
on:click|preventDefault={async () => {
goto(`${base}/tools/${tool._id}`);
}}
>
<ToolLogo icon={tool.icon} color={tool.color} size="xs" />
{tool.displayName}
</button>
{/each}
{/if}
{#if modelIsMultimodal || modelHasTools}
<form>
<button
Expand All @@ -214,18 +228,6 @@
{/if}
</button>
</form>
{#each extraTools as tool}
<button
class="active-tool base-tool"
disabled={loading}
on:click|preventDefault={async () => {
goto(`${base}/tools/${tool._id}`);
}}
>
<ToolLogo icon={tool.icon} color={tool.color} size="xs" />
{tool.displayName}
</button>
{/each}
{/if}
</div>
{/if}
Expand Down

0 comments on commit 46b0272

Please sign in to comment.