Browse Source

refac: valves filter out external tools

Timothy Jaeryang Baek 3 tuần trước cách đây
mục cha
commit
99bba12de2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lib/components/chat/Controls/Valves.svelte

+ 1 - 1
src/lib/components/chat/Controls/Valves.svelte

@@ -172,7 +172,7 @@
 									>{$i18n.t('Select a tool')}</option
 								>
 
-								{#each $tools as tool, toolIdx}
+								{#each $tools.filter((tool) => !tool?.id?.startsWith('server:')) as tool, toolIdx}
 									<option value={tool.id} class="bg-gray-100 dark:bg-gray-800">{tool.name}</option>
 								{/each}
 							{:else if tab === 'functions'}