* [task#149196] add interaction to start a conversation.

This commit is contained in:
wangzemei
2025-10-09 13:34:50 +08:00
committed by sunhao
parent 52eff25687
commit eda4cf4474
+3 -2
View File
@@ -21,8 +21,9 @@ window.initModelList = async function()
{name: 'index', title: 'ID', type: 'id', sortType: false},
{name: 'id', title: modelLang},
{name: 'actions', title: actionLang, width: 90, type: 'actions', actions: ['converse'], actionsMap: {
// TODO: The conversation page has not been developed yet.
converse: {text: converseLang},
converse: {text: converseLang, onClick: (_event, info) => {
loadPage($.createLink('aiapp', 'conversation', `chat=NEW&params=${btoa(JSON.stringify({model: info.item.data.row}))}`));
}},
}},
];
$('#modelsList').zui('dtable').render({cols, data: models});