Commit aaa46dbb authored by nick zheng's avatar nick zheng

chore: 应用大模型数据分组展示

parent 7fd27d15
......@@ -49,7 +49,7 @@ const questionSettingOptions = [
},
]
const modalListOptions = reactive<SelectOption[]>([])
let modalListOptions = reactive<SelectOption[]>([])
const commConfigExpandedNames = ref<string[]>(['continuousQuestion'])
......@@ -150,13 +150,19 @@ async function handleGetAgentApplicationDetail(agentId: string) {
}
async function handleGetLargeModelList() {
const res = await fetchGetLargeModelList<{ modelName: string }[]>()
modalListOptions = []
const res = await fetchGetLargeModelList<{ owner: string; models: string[] }[]>()
res.data.forEach((item) => {
modalListOptions.push({
label: item.modelName,
value: item.modelName,
style: { fontSize: '12px' },
type: 'group',
label: item.owner,
key: item.owner,
children: item.models.map((model) => ({
label: model,
value: model,
style: { fontSize: '12px' },
})),
})
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment