We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4751f4 commit 7403431Copy full SHA for 7403431
ui/pages/gpt/[...gpt].vue
@@ -31,18 +31,21 @@
31
const args = ref<Args>({})
32
const stringArg = ref('')
33
34
+ const entryTool = computed(() => {
35
+ return gpt.toolSet[gpt.entryToolId]
36
+ })
37
+
38
const tool = computed(() => {
39
return gpt.toolSet[toolNameToId(toolName.value)]
40
})
41
42
const toolOptions = computed((): SelectOption[] => {
- const toolset = gpt.toolSet || []
43
const out: SelectOption[] = []
44
- for ( const t of Object.values(toolset) ) {
45
+ for ( const k in entryTool.value?.localTools || {} ) {
46
out.push({
- label: t.name || '<Default>',
- value: t.name || ''
47
+ label: k || '<Default>',
48
+ value: k
49
50
}
51
0 commit comments