【调整】AI 对话引入的 modal 修改为 model
This commit is contained in:
parent
a0e06cc0b7
commit
3e91032eaf
|
@ -1,7 +1,7 @@
|
|||
package cn.iocoder.yudao.module.ai.dal.dataobject.chat;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModalDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModelDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatRoleDO;
|
||||
import cn.iocoder.yudao.module.ai.enums.AiModelEnum;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
|
@ -60,7 +60,7 @@ public class AiChatConversationDO extends BaseDO {
|
|||
/**
|
||||
* 模型编号
|
||||
*
|
||||
* 关联 {@link AiChatModalDO#getId()} 字段
|
||||
* 关联 {@link AiChatModelDO#getId()} 字段
|
||||
*/
|
||||
private Long modelId;
|
||||
/**
|
||||
|
|
|
@ -11,11 +11,11 @@ import cn.iocoder.yudao.module.ai.controller.admin.model.vo.model.AiChatModalRes
|
|||
import cn.iocoder.yudao.module.ai.controller.admin.model.vo.role.AiChatRoleRespVO;
|
||||
import cn.iocoder.yudao.module.ai.convert.AiChatConversationConvert;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.chat.AiChatConversationDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModalDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.dataobject.model.AiChatModelDO;
|
||||
import cn.iocoder.yudao.module.ai.dal.mysql.AiChatConversationMapper;
|
||||
import cn.iocoder.yudao.module.ai.dal.mysql.AiChatModalMapper;
|
||||
import cn.iocoder.yudao.module.ai.dal.mysql.AiChatModelMapper;
|
||||
import cn.iocoder.yudao.module.ai.service.AiChatConversationService;
|
||||
import cn.iocoder.yudao.module.ai.service.AiChatModalService;
|
||||
import cn.iocoder.yudao.module.ai.service.AiChatModelService;
|
||||
import cn.iocoder.yudao.module.ai.service.AiChatRoleService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -35,8 +35,8 @@ import java.util.List;
|
|||
@AllArgsConstructor
|
||||
public class AiChatConversationServiceImpl implements AiChatConversationService {
|
||||
|
||||
private final AiChatModalMapper aiChatModalMapper;
|
||||
private final AiChatModalService aiChatModalService;
|
||||
private final AiChatModelMapper aiChatModalMapper;
|
||||
private final AiChatModelService aiChatModalService;
|
||||
private final AiChatRoleService aiChatRoleService;
|
||||
private final AiChatConversationMapper aiChatConversationMapper;
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class AiChatConversationServiceImpl implements AiChatConversationService
|
|||
// 获取用户id
|
||||
Long loginUserId = SecurityFrameworkUtils.getLoginUserId();
|
||||
// 默认使用 sort 排序第一个模型
|
||||
AiChatModalDO aiChatModalDO = aiChatModalMapper.selectFirstModal();
|
||||
AiChatModelDO aiChatModalDO = aiChatModalMapper.selectFirstModal();
|
||||
// 查询角色
|
||||
AiChatRoleRespVO chatRoleRes = null;
|
||||
if (req.getRoleId() != null) {
|
||||
|
|
Loading…
Reference in New Issue