소스 검색

refac: valves filter out external tools

Timothy Jaeryang Baek 3 주 전
부모
커밋
99bba12de2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'}