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 || '填写表单参数进行内容创作' }}
- 返回画布 +
+ + + 设置对话模型 + + 返回画布 +