From 03de9595d1c85b7a79eb21d6a046900a91e666fa Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Mon, 11 May 2026 22:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=B9=E8=AF=9D=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 `updateChatModel` 函数的参数名称,从 `chatSessionEnabled` 更改为 `isChatModel`,以提高一致性。 - 在创作页面中新增对话模型选择器,支持用户搜索和选择对话模型,提升用户体验。 - 实现对话模型的分页和搜索功能,优化模型列表的展示。 - 更新相关样式和逻辑,确保对话模型设置的顺畅交互。 --- .../modelConfig/modelModule/index.ts | 17 +- src/views/digitalHuman/creation/index.vue | 292 +++++++++++++++++- .../modelConfig/modelModule/index.vue | 2 +- 3 files changed, 297 insertions(+), 14 deletions(-) diff --git a/src/api/digitalHuman/modelConfig/modelModule/index.ts b/src/api/digitalHuman/modelConfig/modelModule/index.ts index fa7f743..6ce1345 100644 --- a/src/api/digitalHuman/modelConfig/modelModule/index.ts +++ b/src/api/digitalHuman/modelConfig/modelModule/index.ts @@ -213,18 +213,23 @@ export function getModelModuleDetail(id: number | string) { }); } -// TODO: 列表「会话开关」提交接口确定后在此封装,例如: -// export function updateModelChatSessionSwitch(data: { id: number | string; chatSessionEnabled: 0 | 1 }) { -// return request({ url: '/model-gateway/model/...', method: 'post', data }); -// } - /** * 更新模型会话开关状态 */ -export function updateChatModel(data: { id: number | string; chatSessionEnabled: 0 | 1 }) { +export function updateChatModel(data: { id: number | string; isChatModel: 0 | 1 }) { return request({ url: '/model-gateway/model/updateChatModel', method: 'post', data, }); } + +/** + * 获取当前会话模型 + */ +export function getIsChatModel() { + return request({ + url: '/model-gateway/model/getIsChatModel', + method: 'get', + }); +} diff --git a/src/views/digitalHuman/creation/index.vue b/src/views/digitalHuman/creation/index.vue index f3f9ff8..23b03f3 100644 --- a/src/views/digitalHuman/creation/index.vue +++ b/src/views/digitalHuman/creation/index.vue @@ -173,7 +173,10 @@
- 应用到当前元素 + + + 应用到当前元素 +
@@ -190,20 +193,37 @@
{{ currentWorkflowForCreation?.flowName || '内容创作' }}
{{ currentWorkflowForCreation?.description || '填写表单参数进行内容创作' }}
- 返回画布 +
+ + + 设置对话模型 + + 返回画布 +