Commit aaa46dbb authored by nick zheng's avatar nick zheng

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

parent 7fd27d15
...@@ -49,7 +49,7 @@ const questionSettingOptions = [ ...@@ -49,7 +49,7 @@ const questionSettingOptions = [
}, },
] ]
const modalListOptions = reactive<SelectOption[]>([]) let modalListOptions = reactive<SelectOption[]>([])
const commConfigExpandedNames = ref<string[]>(['continuousQuestion']) const commConfigExpandedNames = ref<string[]>(['continuousQuestion'])
...@@ -150,13 +150,19 @@ async function handleGetAgentApplicationDetail(agentId: string) { ...@@ -150,13 +150,19 @@ async function handleGetAgentApplicationDetail(agentId: string) {
} }
async function handleGetLargeModelList() { async function handleGetLargeModelList() {
const res = await fetchGetLargeModelList<{ modelName: string }[]>() modalListOptions = []
const res = await fetchGetLargeModelList<{ owner: string; models: string[] }[]>()
res.data.forEach((item) => { res.data.forEach((item) => {
modalListOptions.push({ modalListOptions.push({
label: item.modelName, type: 'group',
value: item.modelName, label: item.owner,
style: { fontSize: '12px' }, 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