From eda4cf44740cc1a2ac07afaadbcb1dc50f6bf7ea Mon Sep 17 00:00:00 2001 From: wangzemei Date: Thu, 11 Sep 2025 14:12:36 +0800 Subject: [PATCH] * [task#149196] add interaction to start a conversation. --- module/aiapp/js/models.ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/aiapp/js/models.ui.js b/module/aiapp/js/models.ui.js index 8a41fba93b..356173cb41 100644 --- a/module/aiapp/js/models.ui.js +++ b/module/aiapp/js/models.ui.js @@ -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¶ms=${btoa(JSON.stringify({model: info.item.data.row}))}`)); + }}, }}, ]; $('#modelsList').zui('dtable').render({cols, data: models});