Skip to content

Commit 7403431

Browse files
committed
Use localTools to get tool options
Signed-off-by: Vincent Fiduccia <[email protected]>
1 parent f4751f4 commit 7403431

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ui/pages/gpt/[...gpt].vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,21 @@
3131
const args = ref<Args>({})
3232
const stringArg = ref('')
3333
34+
const entryTool = computed(() => {
35+
return gpt.toolSet[gpt.entryToolId]
36+
})
37+
3438
const tool = computed(() => {
3539
return gpt.toolSet[toolNameToId(toolName.value)]
3640
})
3741
3842
const toolOptions = computed((): SelectOption[] => {
39-
const toolset = gpt.toolSet || []
4043
const out: SelectOption[] = []
4144
42-
for ( const t of Object.values(toolset) ) {
45+
for ( const k in entryTool.value?.localTools || {} ) {
4346
out.push({
44-
label: t.name || '<Default>',
45-
value: t.name || ''
47+
label: k || '<Default>',
48+
value: k
4649
})
4750
}
4851

0 commit comments

Comments
 (0)